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

Function main

chapter5/listing64/listing64.go:12–22  ·  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 variable of the unexported type and initialize
14 // the value to 10.
15 counter := counters.alertCounter(10)
16
17 // ./listing64.go:15: cannot refer to unexported name
18 // counters.alertCounter
19 // ./listing64.go:15: undefined: counters.alertCounter
20
21 fmt.Printf("Counter: %d\n", counter)
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected