Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Append ¶
Append appends the given errors together. Either value may be nil.
This function is a specialization of Combine for the common case where there are only two errors.
func Combine ¶
Combine combines the passed errors into a single error.
If zero arguments were passed or if all items are nil, a nil error is returned.
If only a single error was passed, it is returned as-is.
Combine skips over nil arguments so this function may be used to combine errors from operations that fail independently of each other.
If any of the passed errors is an errorGroup error, it will be flattened along with the other errors.
func Errors ¶
Errors returns a slice containing zero or more errors the supplied error is composed of. If the error is nil, a nil slice is returned.
If the error is not composed of the errors (do not implement errorGroup interface with Errors method), the returned slice contains just the error that was padded in.
Callers of this function are free to modify the returned slice.
Types ¶
This section is empty.