Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | package errors |
||
2 | |||
3 | import ( |
||
4 | "errors" |
||
5 | ) |
||
6 | |||
7 | // Unwrap only redirects to errors.Unwrap |
||
8 | func Unwrap(err error) error { |
||
9 | return errors.Unwrap(err) |
||
10 | } |
||
11 | |||
12 | // Is only redirects to errors.Is |
||
13 | func Is(err, target error) bool { |
||
14 | return errors.Is(err, target) |
||
15 | } |
||
16 | |||
17 | // As only redirects to errors.As |
||
18 | func As(err error, target any) bool { |
||
19 | return errors.As(err, target) |
||
20 | } |
||
21 |