package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Oct 17, 2022
License: MPL-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 7
Opens a new window with list of known importers.
Documentation
¶
Package xerrors contains the additions to std errors package.
NewTagged creates a new typed error.
NewTaggedf creates a new typed error.
TagIs is wrapper around errors.As which checks the error tag.
TypeIs is wrapper around errors.As which check the error type.
type Tag interface {
~struct{}
}
Tag is a type which can be used to tag Tagged errors.
type Tagged[T Tag] struct {
}
Tagged is an error with a tag attached. Tag can only be an empty struct.
Error implements error interface.
Unwrap implements errors.Unwrap.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.