Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorWithCode ¶
type ErrorWithCode struct {
Code int
}
ErrorWithCode is an error that contains an os.Exit code
func NewErrorWithCode ¶
func NewErrorWithCode(code int) *ErrorWithCode
NewErrorWithCode will return a new error with an os.Exit code
func (ErrorWithCode) Error ¶
func (ewc ErrorWithCode) Error() string
Click to show internal directories.
Click to hide internal directories.