3 ms·
Unless you ignore all returned values: func Something() (a, bunch, of, stuff) { // stuff } ... _, _, _, _ = Something() Something() Both
by AYBABTME 13y ago
Unless you ignore all returned values:
func Something() (a, bunch, of, stuff) {
// stuff
}
...
_, _, _, _ = Something()
Something()
Both are valid.
- deleted 13y ago[deleted]
- jussij 13y agoThanks for that. I would have though that in a language all about error checking this would not be allowed: Something() But there you go, I've learnt something new about Go.
- masklinn 13y ago> in a language all about error checking Go is not one such language, that's one of the numerous go myths completely disconnected from reality.