Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDuration ¶
ParseDuration is a copy of time.ParseDuration that understands days, weeks and months.
nolint
Types ¶
type MultiError ¶
type MultiError struct {
// contains filtered or unexported fields
}
MultiError is just a container of other errors, wrapped into a single error.
func (*MultiError) Error ¶
func (m *MultiError) Error() string
Error returns the error string. Implements the 'error' interface.
func (*MultiError) Errors ¶
func (m *MultiError) Errors() []error
Errors returns a list of all errors in the container.
func (*MultiError) IsNil ¶
func (m *MultiError) IsNil() bool
IsNil returns true if the container is empty.
func (*MultiError) OrNil ¶
func (m *MultiError) OrNil() error
OrNil returns either this same error, if not empty, or nil.
Click to show internal directories.
Click to hide internal directories.