Documentation
¶
Overview ¶
Package errval provides a way to add values to errors.
Example ¶
err := errbase.New("error")
err = Wrap(err, "foo", "bar")
vals := Get(err)
fmt.Println(vals["foo"])
Output: bar
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var VerboseWriter func(io.Writer, any) = prettyWrite
VerboseWriter writes the representation of a value in a verbose message.
It can be changed in order to customize how values are formatted.
By default it uses pretty.Write.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.