Skip to content

Glossary: Go in Practice

errors.Is

Checks whether an error is, or wraps, a particular error value such as `sql.ErrNoRows` or `ErrNotFound`. It sees through `%w`.

Where the book teaches it

Related terms

Sentinel errorerrors.AsWrapping errors with %w