commit | 616f4860ca0a81fc1aa4f225e13d8a82944f293e | [log] [tgz] |
---|---|---|
author | Abhinav Gupta <mail@abhinavg.net> | Wed Oct 11 11:46:30 2023 -0700 |
committer | GitHub <noreply@github.com> | Wed Oct 11 14:46:30 2023 -0400 |
tree | 86d383166461ad862a8243d41c0825bd18f3d096 | |
parent | de75ae527b39a27afcb50a84427ec7b84021d5f4 [diff] |
chore: Drop support for Go < 1.20 (#80) Drops support for versions of Go older than 1.20. With 1.20 being the minimum supported Go version, we can remove the pre_go120 code, and merge the post_go120 code. With Go 1.20's multi-error interface, our errorGroup interface is not necessary, but we need it for backwards compatibility. Also updates the documentation to suggest Go 1.20's interface instead of ours. The `Errors() []error` function is now an implementation detail.
multierr
allows combining one or more Go error
s together.
error
values exclusively.defer
statement.errors.Is
and errors.As
functions just work.go get -u go.uber.org/multierr@latest
Stable: No breaking changes will be made before 2.0.
Released under the MIT License.