Skip to content

Commit

Permalink
remove MultiErr
Browse files Browse the repository at this point in the history
This was a thought but I haven't used it yet
  • Loading branch information
gregwebs committed Nov 21, 2024
1 parent a5d1be0 commit 697f51d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions group.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,6 @@ func Joins(errs ...error) []error {
return newErrs
}

// This operates the same as the non-exported standard library joinError
// To create this from a list of possibly nil errors, you can use 'Joins'
type MultiErr struct {
Errors []error
}

func (me MultiErr) Error() string {
return stderrors.Join(me.Errors...).Error()
}

func (me MultiErr) Unwrap() []error {
return me.Errors
}

// errorGroup is an interface for multiple errors that are not a chain.
// This happens for example when executing multiple operations in parallel.
// The standard Go API is now Unwrap() []error
Expand Down

0 comments on commit 697f51d

Please sign in to comment.