Last active
June 3, 2020 12:48
-
-
Save mjarkk/be2f910c50f489744511253d0aa1a121 to your computer and use it in GitHub Desktop.
Revisions
-
mjarkk revised this gist
Jun 3, 2020 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,12 @@ package import ( "fmt" "os" ) func l(v ...interface{}) { f, _ := os.OpenFile("debug.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) fmt.Fprintln(f, v...) f.Close() } -
mjarkk created this gist
Nov 22, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ package import ( "log" "os" ) func l(v ...interface{}) { f, _ := os.OpenFile("debug.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) log.SetOutput(f) log.Println(v...) f.Close() }