Just so you don't have to construct a holding variable separately and can write just this:
if err, ok := errors.As[*someError](err); ok {
// ...
}
Wrapper for `errors` package
Just so you don't have to construct a holding variable separately and can write just this:
if err, ok := errors.As[*someError](err); ok {
// ...
}
Wrapper for `errors` package
https://pkg.go.dev/github.com/imax9000/errors
MIT License