2 ms·
This is actually a feature in Go, but you leave off the "true" condition entirely: https://tour.golang.org/flowcontrol/11 https://tour.golang.org/flowcontrol/11
by benhoyt 7y ago
This is actually a feature in Go, but you leave off the "true" condition entirely: https://tour.golang.org/flowcontrol/11 https://tour.golang.org/flowcontrol/11
I quite like it, as it cuts down on the amount of brace and if/else if noise.