Discover Packages
github.com/pierrre/errors
erriter
package
Version:
v0.8.4
Opens a new window with list of versions in this module.
Published: Aug 17, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package erriter provides a way to iterate over errors tree.
Iter iterates over an error tree.
It explores the tree recursively, and calls f for each non-nil error.
Unwrap unwraps an error.
If the error implements `Unwrap() error`, it returns the unwrapped error.
If the error implements `Unwrap() []error`, it returns the unwrapped errors.
Otherwise, it returns nil.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.