Compare commits

..

1 Commits

Author SHA1 Message Date
583c4b4642 Replaced Errors interface with concrete type Errors. 2021-08-13 10:11:13 +02:00

View File

@ -35,11 +35,12 @@ function Open(p string) (*File, error) {
**Errors**
An `Errors` struct that represents multiple errors (but still adheres to the `error` interface)
An `Errors` interface that represents multiple errors (but still adheres to the `error` interface)
```
type Errors struct {
Errs []error
type Errors interface {
error
Errs() []error
}
```