main is the entry point for the application.
()
| 10 | |
| 11 | // main is the entry point for the application. |
| 12 | func 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected