https://github.com/hashicorp/errwrap#basic-usage:
// ...
if errwrap.Contains(err, ErrNotExist) {
// Do something
}
// ...
errwrap.Contains type signature is func Contains(err error, msg string) bool. However ErrNotExist has the same name as os.ErrNotExist and seems to contain an error based on naming. This is conflicting usage. Is the type signature wrong, or the usage documentation?
https://github.com/hashicorp/errwrap#basic-usage:
errwrap.Containstype signature isfunc Contains(err error, msg string) bool. HoweverErrNotExisthas the same name asos.ErrNotExistand seems to contain anerrorbased on naming. This is conflicting usage. Is the type signature wrong, or the usage documentation?