UnwrapMulti access the slice of causes that an error contains, if it is a multi-error.
(err error)
| 64 | // UnwrapMulti access the slice of causes that an error contains, if it is a |
| 65 | // multi-error. |
| 66 | func UnwrapMulti(err error) []error { |
| 67 | if me, ok := err.(interface{ Unwrap() []error }); ok { |
| 68 | return me.Unwrap() |
| 69 | } |
| 70 | return nil |
| 71 | } |
searching dependent graphs…