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

Function main

chapter5/listing74/listing74.go:12–24  ·  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 Admin from the entities package.
14 a := entities.Admin{
15 Rights: 10,
16 }
17
18 // Set the exported fields from the unexported
19 // inner type.
20 a.Name = "Bill"
21 a.Email = "bill@email.com"
22
23 fmt.Printf("User: %v\n", a)
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected