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`.
Glossary: Go Beyond the Basics
Checks whether an error, or any error it wraps, is a particular sentinel such as `ErrSoldOut` or `context.DeadlineExceeded`.