Ok, my bad, now it's Unwrap() []error.
IMO it should be noted somewhere, that the behavior of the library varies based on the version of used Go.
It can cause backward incompatibility to some.
Old text:
The errors.Join() feature in Go 1.20 is nice, but it's not possible to split the errors back to slice of errors.
With Uber implementation, that's under build tag for Go 1.19, it is possible
Ok, my bad, now it's
Unwrap() []error.IMO it should be noted somewhere, that the behavior of the library varies based on the version of used Go.
It can cause backward incompatibility to some.
Old text:
The
errors.Join()feature in Go 1.20 is nice, but it's not possible to split the errors back to slice of errors.With Uber implementation, that's under build tag for Go 1.19, it is possible