Skip to content

Glossary: System Design Basics in Go

errors.As

A Go function that checks whether an error, or one it wraps, has a given type, and fills a variable with it. It is used for `net.Error` and `OutOfStockError`.

Where the book teaches it

Related terms

errors.Iserror wrapping (%w)