Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Errorf ¶
Errorf formats according to a format specifier and returns the string as a value that satisfies error.
func Walk ¶
Walk invokes the given function for each error in the chain. If the provided functions returns true or no further cause can be found, the process is stopped and no further calls will be made.
The next error in the chain is determined by the following rules:
- If the current error has a `Cause() error` method (github.com/pkg/errors), the return value of this method is used.
- If the current error has a `Unwrap() error` method (golang.org/x/xerrors), the return value of this method is used.
- Common errors in the Go runtime that contain an Err field will use this value.
Types ¶
Click to show internal directories.
Click to hide internal directories.