Skip to content

tiny-systems/errorpanic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

It is a simple golang wrapper for functions which may panic.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages