ditointernet / go-dito

MIT License
6 stars 0 forks source link

feat(errors): Add ability for go-dito/errors to wrap other errors #80

Closed LucaMarquesDito closed 1 year ago

LucaMarquesDito commented 1 year ago

With this PR go-dito/errors now can be created with the %w formatting directive, which allows wrapped errors, it also implements Unwrap which allows for our CustomError to be used with the standard errors package As and Is methods.