There are many cases where a call to some library returns []error.
Given this use case, utilising go-multierror is problematic as the client must check for an initial error, and if there are any remaining, then use Append.
This proposal removes this requirement from the client and adds an alternative (non-BC breaking) API change to allow a list of errors to be given.
Proposed signature:
AppendList(errs ...[]error)
All functionality would be identical, except that providing no errors would return an empty Error.
There are many cases where a call to some library returns
[]error
.Given this use case, utilising
go-multierror
is problematic as the client must check for an initial error, and if there are any remaining, then useAppend
.This proposal removes this requirement from the client and adds an alternative (non-BC breaking) API change to allow a list of errors to be given.
Proposed signature:
AppendList(errs ...[]error)
All functionality would be identical, except that providing no errors would return an empty
Error
.