https://github.com/tiny-systems/errorpanic
It is a simple golang wrapper for functions which may panic.
https://github.com/tiny-systems/errorpanic
Last synced: 4 months ago
JSON representation
It is a simple golang wrapper for functions which may panic.
- Host: GitHub
- URL: https://github.com/tiny-systems/errorpanic
- Owner: tiny-systems
- License: mit
- Created: 2022-10-19T23:15:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-27T22:03:36.000Z (about 3 years ago)
- Last Synced: 2025-02-13T09:39:28.622Z (over 1 year ago)
- Language: Go
- Size: 5.86 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# errorpanic
errorpanic It is a simple golang wrapper for functions which may panic.
* Synchronous call.
* For functions which may return errors.
* If panic happens, it will be handled as an error with the help of the `recover` function
* Error typed panics are supported `panic(err)`
## Installation
Standard `go get`:
```
go get github.com/tiny-systems/errorpanic
```
## Usage & Example
```go
err := errorpanic.Wrap(someFuncError)
```
Please check [examples](examples/README.md)