ExitCoder is an interface that may be implemented by an error value to provide an integer exit code. The method ExitCode should return an integer that is intended to be used as the exit code for the application.
| 14 | // provide an integer exit code. The method ExitCode should return an integer |
| 15 | // that is intended to be used as the exit code for the application. |
| 16 | type ExitCoder interface { |
| 17 | ExitCode() int |
| 18 | } |
| 19 | |
| 20 | // exitCodeFromError returns the exit code for the given error. |
| 21 | // If err implements the exitCoder interface, the ExitCode method is called. |
no outgoing calls
no test coverage detected
searching dependent graphs…