3 ms·
Not true. Go uses logic expressions in the case statements all the time. And as pointed out above, a switch defaults to checking against true. https://tour.gol
by lsaferite 7y ago
Not true. Go uses logic expressions in the case statements all the time. And as pointed out above, a switch defaults to checking against true.
https://tour.golang.org/flowcontrol/11 https://tour.golang.org/flowcontrol/11