Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Errors ¶
type Errors []error
Errors makes it easy to combine multiple errors into a single string
func (*Errors) AddErr ¶ added in v0.6.0
AddErr appends an error if it is not nil. Smartly combines errors of type Errors
func (*Errors) ErrIf ¶ added in v0.6.0
ErrIf appends an error with failureMessage if the condition is true Returns the condition to allow for further conditional checks
func (Errors) ErrOrNil ¶ added in v0.6.0
ErrOrNil returns e if an error is present, otherwise returns nil
func (Errors) MarshalJSON ¶ added in v0.8.4
Click to show internal directories.
Click to hide internal directories.