This commit is contained in:
Gokcehan committed 2018-05-20 20:30:41 +03:00
1 parent 03b9fe0c5e
commit a85e0da9b0
12 files changed
+435 -428

No files matched your search

+3 -3
View File
@@ -13,13 +13,13 @@ import (
)
func run() {
logFile, err := os.Create(gLogPath)
f, err := os.Create(gLogPath)
if err != nil {
panic(err)
}
defer os.Remove(gLogPath)
defer logFile.Close()
log.SetOutput(logFile)
defer f.Close()
log.SetOutput(f)
log.Print("hi!")