imax9000 / errors

Wrapper for `errors` package

Home Page:https://pkg.go.dev/github.com/imax9000/errors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slightly better 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 {
  // ...
}

About

Wrapper for `errors` package

https://pkg.go.dev/github.com/imax9000/errors

License:MIT License


Languages

Language:Go 100.0%