3 ms·
>You cannot ignore the error return value in Go. that's not true. You can ignore the second parameter by explicitly naming it with an underscore, like this:
by zemo 14y ago
>You cannot ignore the error return value in Go.
that's not true. You can ignore the second parameter by explicitly naming it with an underscore, like this:
x, _ := MightFail()
- dscrd 14y agoWell ok, you can explicitly ignore them, but not by being negligent.