Releases: go-playground/errors
Releases · go-playground/errors
Release 1.3.0
What's new?
Added New(...)
function for creating errors, just like errors.New()
for convenience.
Release 1.2.0
What's new?
Added error helpers which you can register using errors.RegisterHelper(...)
that can help classify and gather Tag information automatically.
eg.
errors.RegisterHelper(neterrors.NETErrors)
_, err := net.ResolveIPAddr("tcp", "foo")
if err != nil {
err = errors.Wrap(err, "failed to perform operation")
}
// all that extra context, types and tags captured for free
// there are more helpers and you can even create your own.
fmt.Println(err)
Release 1.1.0
#What's new?
Updated the docs, nothing to see here.
Release 1.0.0
Initial Release
Why create another package for errors?
IMHO most other packages didn't take an errors package far enough, too far or just plain not nice to consume or embed.