Registry / utility / koron-iferr

koron-iferr

JSON →
library0.0.0-20240122035601-9c3e2fbe4bd1gogounverified

Package iferr provides a utility to handle errors in Go with a concise if-err pattern.

go get github.com/koron/iferr
INSTALL
IMPORT
SIG · KORON-IFERR
K
koron-iferr
utilitygov0.0.0-20240122035601-9c3e2fbe4bd1
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.

iferr
github.com/koron/iferr

Use iferr to handle errors inline

package main import ( "fmt" "github.com/koron/iferr" ) func main() { err := someFunc() iferr.Return(err, func() { fmt.Println("error handled") }) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20240122035601-9c3e2fbe4bd1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
koron-iferr — go get koron-iferr · libregistry