package
1.0.5
Repository: https://github.com/nyl1001/pkg.git
Documentation: pkg.go.dev

# Functions

AggregateGoroutines runs the provided functions in parallel, stuffing all non-nil errors into the returned Aggregate.
CreateAggregateFromMessageCountMap converts MessageCountMap Aggregate.
FilterOut removes all errors that match any of the matchers from the input error.
Flatten takes an Aggregate, which may hold other Aggregates in arbitrary nesting, and flattens them all into a single Aggregate, recursively.
No description provided by the author
NewAggregate converts a slice of errors into an Aggregate interface, which is itself an implementation of the error interface.
No description provided by the author
Reduce will return err or, if err is an Aggregate and only has one item, the first item in the aggregate.

# Variables

ErrPreconditionViolated is returned when the precondition is violated.

# Structs

No description provided by the author

# Interfaces

Aggregate represents an object that contains multiple errors, but does not necessarily have singular semantic meaning.

# Type aliases

Matcher is used to match errors.
MessageCountMap contains occurance for each error message.