Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotImplErr = errors.New("not implemented")
Functions ¶
func PanicNotImpled ¶
func PanicNotImpled() error
func ShowPanicTrace ¶
func ShowPanicTrace() string
func WritePanicTrace ¶
Types ¶
type ExitCode ¶
type ExitCode uint8
unix exit codes
const ( // build your own like this ExitSuccess ExitCode = 0 )
func AsExitCode ¶
extract an exit code or use this one
func ExitCodeFromErr ¶
attempt to pull an exit code from an error, otherwise use the provided
type ExitCodeError ¶
func AttachExitCode ¶
func AttachExitCode(err error, ec ExitCode) ExitCodeError
decorates an error with an exit code
func (ExitCodeError) Error ¶
func (ece ExitCodeError) Error() string
func (ExitCodeError) Unwrap ¶
func (ece ExitCodeError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.