pkg / errors

Simple error handling primitives
https://godoc.org/github.com/pkg/errors
BSD 2-Clause "Simplified" License
8.18k stars 691 forks source link

Proposal: add errors.Is and errors.As #214

Closed someone235 closed 4 years ago

someone235 commented 4 years ago

go's native errors.Is and errors.As cannot work with github.com/pkg/errors/ errors because they don't implement Unwrap method. It could be nice if this functions would be implemented, or alternatively, implementing an Unwrap method.