Closed thrawn01 closed 1 year ago
v5
branch to do all those TODOs there? cc @Baliedge We have a few pending breaking changes for v5 - https://github.com/mailgun/holster/search?q=TODO%28v5%29 Could you include them or merge this PR into some v5 branch to do all those TODOs there? cc @Baliedge
I'm going to close this PR and make a mailgun/errors
repo. Forcing everyone who uses holster to keep updating ALL of the packages from /v4 to /v5 every time we make a change is painful.
Shouldn't we wait for the https://tip.golang.org/doc/go1.20#errors to be released?
Those changes look additive, should be simple to add support of them later.
Purpose
holster/errors
now works witherrors.Is()
anderrors.As()
anderrors.Wrap()
from 1.19github.com/pkg/errors
error.Wrap()
anderror.Wrapf()
error.Frame
anderror.StackTrace
tocallstack
package..Cause()
which was introduced bygithub.com/pkg/errors
and is not used