Documentation ¶
Overview ¶
Package multierr provides a simple multiple-error type. It is a fork of github.com/tailscale/tailscale/util/multierr that is compatible with Go 1.17.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns an error composed from errs. Some errors in errs get special treatment:
- nil errors are discarded
- errors of type Error are expanded into the top level
If the resulting slice has length 0, New returns nil. If the resulting slice has length 1, New returns that error. If the resulting slice has length > 1, New returns that slice as an Error.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
An Error represents multiple errors.
func (Error) As ¶
As finds the first error in e that matches target, and if any is found, sets target to that error value and returns true. Otherwise, it returns false.
func (Error) GRPCStatus ¶
Click to show internal directories.
Click to hide internal directories.