Documentation
¶
Overview ¶
Package multierror aggregates several errors into a single error whose message renders each underlying error as a bulleted list. It is backed entirely by the standard library and exists to give run and run --all the human-readable aggregation output that plain errors.Join does not provide.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Join ¶
Join collects the non-nil errors into a single Error, flattening any nested aggregates (including errors produced by errors.Join and by Join itself) so that every error renders as a single top-level bullet. It returns nil when every given error is nil, mirroring errors.Join.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error aggregates multiple errors into one. Error.Error renders the underlying errors as a bulleted list, and Error.Unwrap exposes them so that errors.Is and errors.As continue to traverse the aggregated errors.