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

Function init

chapter7/patterns/semaphore/semaphore.go:58–61  ·  view source on GitHub ↗

init is called when the package is initialized. This code runs first.

()

Source from the content-addressed store, hash-verified

56
57// init is called when the package is initialized. This code runs first.
58func init() {
59 // Seed the random number generator
60 rand.Seed(time.Now().Unix())
61}
62
63// main is the entry point for the application
64func main() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected