https://github.com/frantjc/go-error-code
Go module to bubble up and consume exit codes or HTTP status codes alongside errors.
https://github.com/frantjc/go-error-code
go golang
Last synced: 18 days ago
JSON representation
Go module to bubble up and consume exit codes or HTTP status codes alongside errors.
- Host: GitHub
- URL: https://github.com/frantjc/go-error-code
- Owner: frantjc
- License: mit
- Created: 2022-11-23T21:18:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T14:24:37.000Z (6 months ago)
- Last Synced: 2025-03-29T02:04:29.415Z (about 1 month ago)
- Topics: go, golang
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-error-code [](https://github.com/frantjc/go-error-code/actions) [](https://pkg.go.dev/github.com/frantjc/go-error-code) [](https://goreportcard.com/report/github.com/frantjc/go-error-code) 
Opinionated [Go](https://go.dev) module for bubbling up and consuming exit codes alongside errors. Useful for packages that are used by CLIs to return helpful codes to the caller without having to parse error strings.
## install
```sh
go get github.com/frantjc/go-error-code
```