Fatal prints `message` to stderr and exit the process.
(message ...any)
| 316 | |
| 317 | // Fatal prints `message` to stderr and exit the process. |
| 318 | func Fatal(message ...any) { |
| 319 | _, _ = fmt.Fprintf( |
| 320 | os.Stderr, "[FATAL] %s\n%s", fmt.Sprint(message...), |
| 321 | gdebug.StackWithFilter([]string{pathFilterKey}), |
| 322 | ) |
| 323 | os.Exit(1) |
| 324 | } |
| 325 | |
| 326 | // compareMap compares two maps, returns nil if they are equal, or else returns error. |
| 327 | func compareMap(value, expect any) error { |
searching dependent graphs…