Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrSet ¶
type ErrSet []error
ErrSet represents a list of errors.
Example:
errs := ErrSet{}
for ... {
if err := DoSomething(i); err != nil {
errs = append(errs, err)
}
}
return errs.ReturnValue()
func (ErrSet) Error ¶
Error implements the error interface. It returns each error in the list concatenated together with "; ".
func (ErrSet) ReturnValue ¶
ReturnValue returns the ErrSet object if at least one non-nill error is present or nil if there are no errors
Click to show internal directories.
Click to hide internal directories.
