Errorsnow supports any error that implements multiple-error interface.- Add
Everyfunction to allow checking if all errors in the chain satisfieserrors.Isagainst 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
AppendFuncthat 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
AppendInvoketo append into errors fromdeferblocks.
- Actually drop library dependency on development-time tooling.
- Drop library dependency on development-time tooling.
- Add
AppendIntofunction to more ergonomically build errors inside a loop.
- Switch to Go modules.
- Support extracting and matching against wrapped errors with
errors.Asanderrors.Is.
- Added an
Errors(error) []errorfunction 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