Switch Statement in Go
A switch statement is another way to write a sequence of if-else statements. Go’s switch is like the one in C and C++ except that it only runs the selected case, not all the cases that follow we don’t need a break statement here. switch expression { ...
Apr 16, 20222 min read52
