package
module
Version:
v0.7.1
Opens a new window with list of versions in this module.
Published: Oct 30, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
err := errorpanic.Wrap(someFuncError)
Please check examples
Documentation
¶
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.