2 ms·
Golang error handling is terrible by default. The lack of sum types also make it hard to know what errors a function might return and libraries rarely wrap thei
by _lvbh 2y ago
Golang error handling is terrible by default. The lack of sum types also make it hard to know what errors a function might return and libraries rarely wrap their errors. There also isn’t any stack trace by default which makes it hard to find the original source of the error.
Check out https://github.com/rotisserie/eris https://github.com/rotisserie/eris. It really is a lifesaver