top | item 45292925 (no title) cronelius | 5 months ago Isn't this what Unwrap() is for? errors.Is calls Unwrap if it's available and then compares _that_ error. discuss order hn newest eik|5 months ago Yes, but “an Is method should only shallowly compare err and the target and not call Unwrap on either”:https://pkg.go.dev/errors#Is
eik|5 months ago Yes, but “an Is method should only shallowly compare err and the target and not call Unwrap on either”:https://pkg.go.dev/errors#Is
eik|5 months ago
https://pkg.go.dev/errors#Is