Discover Packages
github.com/pierrre/errors
erriter
package
Version:
v0.10.1
Opens a new window with list of versions in this module.
Published: Oct 29, 2024
License: MIT
Opens a new window with license information.
Imports: 1
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 returns an iterator that iterates over an error tree recursively.
Iter iterates over an error 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.