package xdefer
Import Path
oss.terrastruct.com/util-go/xdefer (on go.dev)
Dependency Relation
imports 3 packages, and imported by 4 packages
Involved Source Files
Package xdefer implements an extremely useful function, Errorf, to annotate all errors returned from a function transparently.
Package-Level Functions (only one)
Errorf makes it easy to defer annotate an error for all return paths in a function.
See the tests for how it's used.
Pass s == "" to only annotate the location of the return.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |