https://github.com/krishpranav/errhandle
A golang error handling framework
https://github.com/krishpranav/errhandle
error error-hanlding go golang linux macos windows
Last synced: 5 months ago
JSON representation
A golang error handling framework
- Host: GitHub
- URL: https://github.com/krishpranav/errhandle
- Owner: krishpranav
- License: apache-2.0
- Created: 2022-01-03T11:42:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-03T12:25:34.000Z (over 4 years ago)
- Last Synced: 2025-08-02T10:04:02.015Z (11 months ago)
- Topics: error, error-hanlding, go, golang, linux, macos, windows
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# errhandle
A golang error handling framework
[](https://forthebadge.com)
## About errhandle:
- An error handling framework built using golang and it is easy to use
## Installation:
```bash
$ go get -u github.com/krishpranav/errhandle
```
## Usage:
```golang
package main
import (
"fmt"
"github.com/krishpranav/errhandle"
)
func main() {
myerrHandler := errhandle.NewErrorHandler()
var SomeData string
myerrHandler.AddHandler(func(err error, data ...interface{}) interface{} {
fmt.Println("Generic Error Occured")
return SomeData
})
}
```
## Author
- [krishpranav](https://github.com/krishpranav)