diff options
Diffstat (limited to 'log.go')
| -rw-r--r-- | log.go | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +package exchange + +import ( + "log" + "os" +) + +var ( + lg = log.New(os.Stderr, "git.samanthony.xyz/exchange ", log.LstdFlags) + debug bool +) + +func debugf(format string, a ...any) { + if debug { + lg.Printf(format, a...) + } +} |