Catalogue
Combining errors with go.uber.org/multierr

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

Golangのエラー処理とpkg/errors

Combining errors with go.uber.org/multierr

https://kenzo0107.github.io/en/2020/03/31/go-multierr/

Author

Kenzo Tanaka

Posted on

2020-03-31

Licensed under