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.