Combining errors with go.uber.org/multierr
I came across this tweet!
I wanted to try this out!
So I jumped right in, and one of the things I was really glad to learn about is this!
A way to combine multiple errors!
I used to roll my own logic to collect the errors that occurred inside a for loop and display them later, but it turns out there was already a package that handles this in a systematic way.
Knowledge update complete.
References
Combining errors with go.uber.org/multierr