errdata

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Annotate

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

func Value(err error, key interface{}) interface{}

Value returns the most recent annotation by key on this error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL