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

Function init

chapter2/sample/main.go:12–15  ·  view source on GitHub ↗

init is called prior to main.

()

Source from the content-addressed store, hash-verified

10
11// init is called prior to main.
12func init() {
13 // Change the device for logging to stdout.
14 log.SetOutput(os.Stdout)
15}
16
17// main is the entry point for the program.
18func main() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected