Registry / utility / mitchellh-panicwrap

mitchellh-panicwrap

JSON →
library1.0.0gogounverified

The panicwrap package provides functions for capturing and handling panics in your application.

go get github.com/mitchellh/panicwrap
INSTALL
IMPORT
SIG · MITCHELLH-PANICWRA
M
mitchellh-panicwrap
utilitygov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

panicwrap
github.com/mitchellh/panicwrap

Basic panic wrapping example

package main import ( "fmt" "github.com/mitchellh/panicwrap" ) func main() { exitStatus, err := panicwrap.BasicWrap(func(output string) { fmt.Println("panic occurred:", output) }) if err != nil { panic(err) } if exitStatus >= 0 { return } // normal program execution }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
mitchellh-panicwrap — go get mitchellh-panicwrap · libregistry