Skip to content

Glossary: Go in Practice

errors.As

Looks through an error and anything it wraps for one of a given type, such as a `*StatusError` or `*StockError`, and gives you access to its fields.

Where the book teaches it

Related terms

errors.IsSentinel error