github.com/demosdemon/cpanic (go): cpanic is a package for gracefully handling panics in Go.  There are two main functions in this package: `Recover` and `Forward`. `Recover` can be provided a callback that executes when a panic is recovered. `Forward` can be provided an error pointer that will be set to a `*Panic` type when a panic is recovered. `Forward` is useful when you want to return an error from a function that may panic. `Go` is an application of `Forward` that accepts a function that may panic and returns an error instead.
Keywords: go|golang|panic