https://github.com/alecthomas/errors
A simple errors package for Go
https://github.com/alecthomas/errors
Last synced: 4 months ago
JSON representation
A simple errors package for Go
- Host: GitHub
- URL: https://github.com/alecthomas/errors
- Owner: alecthomas
- License: mit
- Created: 2022-03-27T07:37:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2026-03-05T13:22:07.000Z (5 months ago)
- Last Synced: 2026-03-05T17:22:07.638Z (5 months ago)
- Language: Go
- Size: 24.4 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: COPYING
Awesome Lists containing this project
README
# A simple error wrapping package for Go
[](http://godoc.org/github.com/alecthomas/errors) [](https://github.com/alecthomas/errors/actions/workflows/ci.yml) [](https://goreportcard.com/report/github.com/alecthomas/errors) [](https://gophers.slack.com/messages/CN9DS8YF3)
This is a simple error wrapping package that automatically adds source
locations to errors. It has the same API as github.com/pkg/errors but is much
lighter weight.
If the envar "DEBUG=1" is true, any errors from this package that are printed
will display `:` annotations at each wrapping location.