MCPcopy Create free account
hub / github.com/ez4o/github-contribution-graph / init

Function init

main.go:11–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func init() {
12 logFile, err := os.OpenFile("log.txt", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0766)
13 if err != nil {
14 panic(err)
15 }
16
17 log.SetOutput(logFile)
18 log.SetPrefix("[log] ")
19 log.SetFlags(log.LstdFlags | log.Lshortfile)
20}
21
22func main() {
23 configFile, err := os.Open("config.json")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected