Documentation ¶ Index ¶ type Error func (e Error) Code() int func (e Error) Error() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Error ¶ type Error int Error is an error type that contains a process exit code. This is itended for situations where you want to call os.Exit only in one place, but also want some deeply nested functions to decide what should be the exit code. func (Error) Code ¶ func (e Error) Code() int Code returns the exit code. func (Error) Error ¶ func (e Error) Error() string Error is the implementation of the error interface. Source Files ¶ View all Source files error.go Click to show internal directories. Click to hide internal directories.