Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiError ¶
type MultiError struct { Errors []error // contains filtered or unexported fields }
MultiError type handles error accumulation from goroutines.
func (*MultiError) Add ¶
func (err *MultiError) Add(e error)
Add adds an error to the Multierror structure.
func (*MultiError) Error ¶
func (err *MultiError) Error() string
Error turns the MultiError structure into a string.
func (*MultiError) Return ¶
func (err *MultiError) Return() error
Return is used as a wrapper on return on whether to return the MultiError Structure if errors exist or nil instead of delivering an empty structure.
Click to show internal directories.
Click to hide internal directories.