debugLog prints a debug message to stderr when debug mode is enabled.
(format string, args ...any)
| 7 | |
| 8 | // debugLog prints a debug message to stderr when debug mode is enabled. |
| 9 | func debugLog(format string, args ...any) { |
| 10 | if !debug { |
| 11 | return |
| 12 | } |
| 13 | fmt.Fprintf(os.Stderr, "[debug] "+format+"\n", args...) |
| 14 | } |