3 ms·
> If you do not wish to check the error code, you must be explicit. Or you can ignore all the return values, like in your fmt.Println() example. > I say "part
by genwin 14y ago
> If you do not wish to check the error code, you must be explicit.
Or you can ignore all the return values, like in your fmt.Println() example.
> I say "partial" because functions that only return 1 value can ignore the return implicitly:
fmt.Println() returns two values, one of which is of the error type. You can't ignore just one of those values, but you can ignore both of them.
- Jabbles 14y agoCorrect. Thank you.