Fatalf prints fatal message according to a format and exits program
(format string, args ...interface{})
| 78 | |
| 79 | // Fatalf prints fatal message according to a format and exits program |
| 80 | func Fatalf(format string, args ...interface{}) { |
| 81 | s := fmt.Sprintf(format, args...) |
| 82 | fatalLogger.Output(outputCallDepth, mask(s)) // nolint |
| 83 | os.Exit(1) |
| 84 | } |
| 85 | |
| 86 | type regexReplacer struct { |
| 87 | regex *regexp.Regexp |