Glossary: System Design Basics in Go
errors.As
A Go function that checks whether an error, or one it wraps, has a given type, and fills a variable with it. It is used for `net.Error` and `OutOfStockError`.
Glossary: System Design Basics in Go
A Go function that checks whether an error, or one it wraps, has a given type, and fills a variable with it. It is used for `net.Error` and `OutOfStockError`.