Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiError ¶
type MultiError struct {
// contains filtered or unexported fields
}
MultiError represents multiple errors https://biosphere.cc/software-engineering/returning-multiple-errors-in-go/
func (*MultiError) Add ¶
func (m *MultiError) Add(es ...error)
Add adds one or many errors nil errors are not appended
func (MultiError) Error ¶
func (m MultiError) Error() string
Error returns a human readable string indicating the number of errors that are contained but no specifics on the actual errors TODO: make it work like error wrapping
func (*MultiError) Return ¶
func (m *MultiError) Return() error
Return returns itself if errors are set, otherwise nil.
Click to show internal directories.
Click to hide internal directories.