Documentation ¶
Overview ¶
Package errors provides error handling utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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:
the return value of this method is used. - If the current error has a `Unwrap() error` method the return value of this method is used. - If the current error has a `Unwrap() []error` method the return values 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.