errors

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsA

func AsA[E error](err error) (e E, ok bool)

AsA finds the first error in err's tree that has the type E, and if one is found, returns that error value and true. Otherwise it returns the zero value of E and false. Note that this implement is reference [#51945])(https://github.com/golang/go/issues/51945) and [#56949](https://github.com/golang/go/issues/56949).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL