(code int, format string, values ...any)
| 141 | } |
| 142 | |
| 143 | func printErrorAndExit(code int, format string, values ...any) { |
| 144 | fmt.Fprintf(os.Stderr, "ERROR: %s\n", fmt.Sprintf(format, values...)) |
| 145 | fmt.Fprintln(os.Stderr) |
| 146 | os.Exit(code) |
| 147 | } |
| 148 | |
| 149 | func printUsageErrorAndExit(message string) { |
| 150 | fmt.Fprintln(os.Stderr, "ERROR:", message) |