Documentation ¶
Index ¶
- Variables
- func GetTags(err error) []string
- func SerializeTags(err error) string
- func Tag(tag string, err error) error
- func TagErrorf(tag string, format string, args ...any) error
- func TagWrapf(tag string, err error, format string, args ...any) error
- func Wrapf(err error, format string, args ...any) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Errorf = fmt.Errorf
Re-exports fmt.Errorf from standard library.
View Source
var Is = goerrors.Is
Re-exports errors.Is from standard library.
View Source
var Join = goerrors.Join
Re-exports errors.Join from standard library.
Functions ¶
func SerializeTags ¶
Serializes the tags in an error to a single string of constant (known at compile time) cardinality.
func Tag ¶
Attaches a tag to an error.
A tag should be a string literal that describes the current function path concisely. It is used for reporting error type in metrics, so a small cardinality is expected.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.