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.

2 files changed
tree: 928bc99b5d6fb6a7ef08254b117413c9270178b1
  1. .codecov.yml
  2. .gitignore
  3. .travis.yml
  5. LICENSE.txt
  6. Makefile
  8. benchmarks_test.go
  9. error.go
  10. error_test.go
  11. glide.lock
  12. glide.yaml
  13. scripts/

multierr GoDoc Build Status Coverage Status

multierr allows combining one or more Go errors together.


go get -u


Stable: No breaking changes will be made before 2.0.

Released under the MIT License.