4 ms·
I don't see how those are mutually exclusive. You could do something like: x, err := f(); if err != nil return fmt.Errorf("More context -> %s", err) (I'm no
by ladberg 5y ago
I don't see how those are mutually exclusive. You could do something like:
x, err := f(); if err != nil return fmt.Errorf("More context -> %s", err)
(I'm not attached to that specific syntax, it's just an example of a hypothetical one-liner)