https://github.com/bluekeyes/hatpear
Simple error aggregation and handling for Go HTTP handlers
https://github.com/bluekeyes/hatpear
error-handling errors golang http
Last synced: 2 months ago
JSON representation
Simple error aggregation and handling for Go HTTP handlers
- Host: GitHub
- URL: https://github.com/bluekeyes/hatpear
- Owner: bluekeyes
- License: mit
- Created: 2017-10-01T23:18:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-15T21:38:44.000Z (over 1 year ago)
- Last Synced: 2025-03-24T12:06:22.215Z (3 months ago)
- Topics: error-handling, errors, golang, http
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hatpear [](http://godoc.org/github.com/bluekeyes/hatpear)
hatpear (from "httperr") is a simple, unopinionated Go 1.7+ library for
capturing and responding to errors that occur while handling HTTP requests. It
has no dependencies and works well with the standard library or other HTTP
libraries that use standard types.See the [package documentation](https://godoc.org/github.com/bluekeyes/hatpear) for
examples and usage details.**Stability Note:** While the API is simple, it hasn't seen heavy use yet and
may change in the future. I recommend vendoring this package at a specific
commit if you are concerned about API changes.