Documentation
¶
Overview ¶
Package errors provides a toolset to join and split errors.
err := errors.PrefixedGroup("my group: ", fmt.Errorf("error1), nil, fmt.Errorf("error2"))
errs := errors.Collection(err) // []errors{error("my group: error1"), error("my group: error2")}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collection ¶
func Group ¶
Group joins provided errors. It ignores nil nil-values. It may return nil, when there are not errors given.
func PrefixedGroup ¶
PrefixedGroup joins error the same way as Group, and adds a prefix to the group.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.