Skip to content

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

2 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages