()
| 9 | ) |
| 10 | |
| 11 | func 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 | |
| 22 | func main() { |
| 23 | configFile, err := os.Open("config.json") |
nothing calls this directly
no outgoing calls
no test coverage detected