Glossary: Go Beyond the Basics
errors.As
Searches an error and everything it wraps for an error of a given type, and fills your variable with it. Use it to read fields such as `StockError.Have`.
Glossary: Go Beyond the Basics
Searches an error and everything it wraps for an error of a given type, and fills your variable with it. Use it to read fields such as `StockError.Have`.