Fatalf is equivalent to log.Printf, but prefixed with "[FATAL] ", and calling os.Exit(1)
(format string, v ...any)
| 92 | // Fatalf is equivalent to log.Printf, but prefixed with "[FATAL] ", and calling |
| 93 | // os.Exit(1) |
| 94 | func Fatalf(format string, v ...any) { logf(fatal, format, v...); os.Exit(1) } |
| 95 | |
| 96 | // Discard sets the log output to /dev/null. |
| 97 | func Discard() { golog.SetOutput(io.Discard) } |
no test coverage detected
searching dependent graphs…