The highest tagged major version is
v2.
package
Version:
v1.9.1
Opens a new window with list of versions in this module.
Published: Oct 21, 2021
License: BSD-2-Clause
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 PanicOnError(err error)
PanicOnError panic when err is not nil
UnwrapToRoot recursively unwrap the error chain, util the error is not a WrapError, and return this error.
UnwrapUtil unwrap the error chain, util the error meet the predicate func, and then return the error.
If not found meet err, return nil
Wrap return a new error wrapped the origin error, with an additional message.
WrapError is an interface for wrapped error.
The error generated by fmt.Errorf with an origin error also implement this interface
Source Files
¶
Click to show internal directories.
Click to hide internal directories.