MCPcopy Create free account
hub / github.com/djhworld/simple-computer / init

Function init

cmd/simulator/main.go:19–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17)
18
19func init() {
20 // This is needed to arrange that main() runs on main thread.
21 // See documentation for functions that are only allowed to be called from the main thread.
22 runtime.LockOSThread()
23}
24
25var binFile = flag.String("bin", "/dev/stdin", "the bin file to load into the computer")
26var printState = flag.Bool("print-state", false, "print the computer state to stdout")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected