Skip to content

Glossary: Go Beyond the Basics

sentinel error

Also written: sentinel

A package-level error value, like `ErrSoldOut` or `ErrNotFound`, that callers compare with `errors.Is`.

Where the book teaches it

Related terms

errors.Iserrors.As