Skip to content

An errors package built on top of existing battle tested packages with structured JSON serialisation support

License

Notifications You must be signed in to change notification settings

etherlabsio/errors

Repository files navigation

errors

Travis-CI Go Report Card GoDoc codecov

An errors package built on top of existing battle tested packages with structured JSON serialization support.

Requirements

Go v1.10+ since strings.Builder API is used for generating the output for Error() method.

Features

  • A very primitive support for monads
  • Maintains backwards compatibility with Dave Cheney's errors package.
  • Additional functions for wrapping errors inspired by Upspin's error package.
  • Additional methods for error inspection.
  • JSON serialization support.

Prior Art

License

Unless otherwise noted, the errors source files are distributed under the Apache Version 2.0 license found in the LICENSE file.

FOSSA Status

About

An errors package built on top of existing battle tested packages with structured JSON serialisation support

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages