Skip to content

Glossary: Go Beyond the Basics

errors.Is

Checks whether an error, or any error it wraps, is a particular sentinel such as `ErrSoldOut` or `context.DeadlineExceeded`.

Where the book teaches it

Related terms

errors.Assentinel errorwrapping errors (%w)