Errors
now supports any error that implements multiple-error interface.- Add
Every
function to allow checking if all errors in the chain satisfieserrors.Is
against the target error.
- Comply with Go 1.20's multiple-error interface.
- Drop Go 1.18 support. Per the support policy, only Go 1.19 and 1.20 are supported now.
- Drop all non-test external dependencies.
-
Add
AppendFunc
that allow passsing functions to similar toAppendInvoke
. -
Bump up yaml.v3 dependency to 3.0.1.
Combine
: perform zero allocations when there are no errors.
- Add
AppendInvoke
to append into errors fromdefer
blocks.
- Actually drop library dependency on development-time tooling.
- Drop library dependency on development-time tooling.
- Add
AppendInto
function to more ergonomically build errors inside a loop.
- Switch to Go modules.
- Support extracting and matching against wrapped errors with
errors.As
anderrors.Is
.
- Added an
Errors(error) []error
function to extract the underlying list of errors for a multierr error.
No changes since v0.2.0. This release is committing to making no breaking changes to the current API in the 1.X series.
- Repeatedly appending to the same error is now faster due to fewer allocations.
- Initial release