News for hackers. Stuff that matters.
Re:My Go Resolutions for 2017 by lobster_johnson on Wednesday January 18, 2017 @01:54PM (#13429147)
There's already a good library like that: https://github.com/pkg/errors

It is API-compatible with the errors package, and you get errors.Wrap(err, message), errors.Wrapf(err, message, args) and errors.Cause(err).

Re:My Go Resolutions for 2017 by voidlogic on Wednesday January 18, 2017 @06:43PM (#13431592)
We wrote ours around the time Go 1.1 was released so its way older and featureful than that package.