3 ms·
Go to Receive Multipe Error Wrapping – Fixing a Common Complaint
- veqq 4y agoVerbose error handling's the most common complaint about Go and this goes a fair way toward minimizing it. (I would argue the core model is a boon and most in the community prefer to be part of a community placing such importance on error handling, in spite of the boilerplate.) There are many situations where you want to collect all triggered errors instead of only the first and this collects them together, letting you test for them at different layers. You can see the implementation here: https://t.co/jj3PSfYubQ https://t.co/jj3PSfYubQ