Error returns a string containing all the errors in e.
()
| 9 | |
| 10 | // Error returns a string containing all the errors in e. |
| 11 | func (e Errors) Error() string { |
| 12 | var errs []string |
| 13 | for _, err := range e { |
| 14 | if err != nil { |
| 15 | errs = append(errs, err.Error()) |
| 16 | } |
| 17 | } |
| 18 | return strings.Join(errs, "; ") |
| 19 | } |
| 20 | |
| 21 | // Empty returns whether e has any non-nil errors in it. |
| 22 | func (e Errors) Empty() bool { |
no outgoing calls