Debug prints to the console if DNOTE_DEBUG is set
(msg string, v ...interface{})
| 114 | |
| 115 | // Debug prints to the console if DNOTE_DEBUG is set |
| 116 | func Debug(msg string, v ...interface{}) { |
| 117 | if isDebug() { |
| 118 | fmt.Fprintf(color.Output, "%s %s", ColorGray.Sprint("DEBUG:"), fmt.Sprintf(msg, v...)) |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | // DebugNewline prints a newline only in debug mode |
| 123 | func DebugNewline() { |
no test coverage detected