Add debug output support

This commit is contained in:
2021-03-29 17:22:22 -05:00
parent a4638db773
commit 9338631de9
4 changed files with 17 additions and 0 deletions

View File

@ -60,3 +60,9 @@ func YesNo(v bool) string {
}
return "no"
}
func Debugf(format string, a ...interface{}) {
if GetConfig().Debug {
fmt.Printf(format, a...)
}
}