https://github.com/sebastianwebber/berr
Better errors replaces the standard error message with a more detailed one.
https://github.com/sebastianwebber/berr
error-handling golang golang-error-handling golang-errors golang-library golang-package
Last synced: 3 months ago
JSON representation
Better errors replaces the standard error message with a more detailed one.
- Host: GitHub
- URL: https://github.com/sebastianwebber/berr
- Owner: sebastianwebber
- Created: 2024-03-20T15:34:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-21T05:22:09.000Z (about 1 year ago)
- Last Synced: 2025-01-06T18:32:21.415Z (5 months ago)
- Topics: error-handling, golang, golang-error-handling, golang-errors, golang-library, golang-package
- Language: Go
- Homepage:
- Size: 1.48 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `berr`: Better Errors
Better errors replaces the standard error message with a more detailed one.
This makes it easier to debug your code and understand what is going on.Yes, message output is inspired by the rust's [`anyhow` crate](https://docs.rs/anyhow/latest/anyhow/). :D
## Installation
```shell
go get github.com/sebastianwebber/berr@latest
```## Example

> check [`./examples/main.go`](./examples/main.go) for details.