Documentation
¶
Overview ¶
Package errors provides error handling utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Join ¶
Join returns an error that wraps the given errors. Any nil error values are discarded. Join returns nil if every value in errs is nil. The error formats as the concatenation of the strings obtained by calling the Error method of each element of errs, with a newline between each string.
A non-nil error returned by Join implements the Unwrap() []error method.
This is copied from Go 1.20 errors.Unwrap, with some tuning to avoid using unsafe. The main goal is to have this available in older Go versions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.