Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiError ¶
type MultiError []error
MultiError implements the error interface, and contains the errors used to construct it.
func New ¶
func New(errs ...error) MultiError
New returns a new MultiError containing supplied errors.
func (*MultiError) Add ¶
func (es *MultiError) Add(err error)
Add adds the error to the error list if it is not nil.
func (MultiError) Err ¶
func (es MultiError) Err() error
Err returns the error list as an error or nil if it is empty.
Click to show internal directories.
Click to hide internal directories.