pkg/dbg/debug.go (10 lines of code) (raw):

package dbg import ( "log" "os" ) func Debug(output ...string) { if os.Getenv("DEBUG") != "" { log.Print(output) } }