package
Version:
v1.12.0
Opens a new window with list of versions in this module.
Published: Jul 16, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Annotate(err error, key, val interface{}) error
Annotate returns a new error annotated with the provided key and value.
If err is nil, does nothing.
func Value(err error, key interface{}) interface{}
Value returns the most recent annotation by key on this error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.