commit | 8aa0ee0efdf1744c8b87b2b63acc647e78b244a2 | [log] [tgz] |
---|---|---|
author | Abhinav Gupta <mail@abhinavg.net> | Tue Jun 27 10:54:19 2017 -0700 |
committer | GitHub <noreply@github.com> | Tue Jun 27 10:54:19 2017 -0700 |
tree | 928bc99b5d6fb6a7ef08254b117413c9270178b1 | |
parent | 87edb7a595e0b8f11f5db8f21beafa83aeae4a2d [diff] |
Support extracting underlying error list (#19) This change adds an `Errors(err) []error` function which returns the underlying list of errors. Additionally, it amends the contract for returned errors that they MAY implement a specific interface. This is needed for Zap integration as per discussion in #6. Resolves #10.
multierr
allows combining one or more Go error
s together.
go get -u go.uber.org/multierr
Stable: No breaking changes will be made before 2.0.
Released under the MIT License.