MCPcopy Create free account
hub / github.com/goinaction/code / main

Function main

chapter5/listing71/listing71.go:12–23  ·  view source on GitHub ↗

main is the entry point for the application.

()

Source from the content-addressed store, hash-verified

10
11// main is the entry point for the application.
12func main() {
13 // Create a value of type User from the entities package.
14 u := entities.User{
15 Name: "Bill",
16 email: "bill@email.com",
17 }
18
19 // ./example71.go:16: unknown entities.User field 'email' in
20 // struct literal
21
22 fmt.Printf("User: %v\n", u)
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected