package
Version:
v0.3.5
Opens a new window with list of versions in this module.
Published: Nov 16, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package errors2 implements methods complementing golang.org/x/xerrors.
View Source
var (
ErrPathDoesNotExist = fmt.Errorf("path does not exist")
)
CombineErrors combines errors if both are not nil, otherwise returns the non-nil one if one exists.
IsType reports whether any error in err's chain matches target's type.
An error is considered to match a target if it's type is equal to that of the target.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.