//
pkg.gl
Category
github.com/carlmjohnson/errors
module
package
0.0.7
Repository:
https://github.com/carlmjohnson/errors.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
0
Files
130 SLOC
#
README
Errors
Some Go error helpers
#
Functions
Defer
Defer is for use when defering a function call that can return an error.
Execute
Execute is intended to be used as the top level function call of a CLI.
Merge
Merge is a convenience method for making a Slice of errors and calling the Merge method.
#
Structs
Multierr
Multierr wraps multiple errors.
#
Interfaces
ExitCoder
ExitCoder is an optional interface that errors can implement to change what exit code they cause Execute to return.
#
Type aliases
Slice
Slice is a slice of errors that implements the error interface itself.