Registry / utility / issue9-errwrap

issue9-errwrap

JSON →
library0.3.3gogounverified

Package errwrap implements secondary wrapping of returned error methods.

go get github.com/issue9/errwrap
INSTALL
IMPORT
SIG · ISSUE9-ERRWRAP
I
issue9-errwrap
utilitygov0.3.3
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.

errwrap
github.com/issue9/errwrap

Wraps an existing error with additional context.

package main import ( "errors" "fmt" "github.com/issue9/errwrap" ) func main() { err := errors.New("original error") wrapped := errwrap.Wrap(err, "additional context") fmt.Println(wrapped) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
issue9-errwrap — go get issue9-errwrap · libregistry