Registry / utility / markbates-safe

markbates-safe

JSON →
library1.1.0gogounverified

Package safe provides a helper to safely execute functions and recover from panics.

go get github.com/markbates/safe
INSTALL
IMPORT
SIG · MARKBATES-SAFE
M
markbates-safe
utilitygov1.1.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.

safe
github.com/markbates/safe

Run a function safely, recovering from panics

package main import ( "fmt" "github.com/markbates/safe" ) func main() { err := safe.Run(func() error { panic("oops") }) fmt.Println(err) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources