Last active
June 3, 2020 12:48
-
-
Save mjarkk/be2f910c50f489744511253d0aa1a121 to your computer and use it in GitHub Desktop.
a small go file for quickly logging things in tui applications
This file contains 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 characters
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() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment