Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).



We wrote ours around the time Go 1.1 was released so its way older and featureful than that package.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: