Exit prints a formatted message and exits.
(format string, args ...interface{})
| 223 | |
| 224 | // Exit prints a formatted message and exits. |
| 225 | func Exit(format string, args ...interface{}) { |
| 226 | Error(format, args...) |
| 227 | os.Exit(2) |
| 228 | } |
| 229 | |
| 230 | // ExitWithError either panics with a full stack trace for fatal errors, or |
| 231 | // simply prints the error message and exits immediately. |
no test coverage detected