3 ms·
hueving is correct, I meant something like this[1]. Of course, something like this[2] also works. [1] https://play.golang.org/p/igdUx6qckf https://play.golang.
by cderwin 10y ago
hueving is correct, I meant something like this[1]. Of course, something like this[2] also works.
[1] https://play.golang.org/p/igdUx6qckf https://play.golang.org/p/igdUx6qckf
[2] https://play.golang.org/p/_JW5QE_zOJ https://play.golang.org/p/_JW5QE_zOJ
- Zikes 10y agoThat function does not have side effects, so it would be pointless to remove the assignment altogether. Assigning errors to underscore is effectively the same as try { myFunc(); } except { pass; }, making them equivalent.