In Go, the control comes out of the switch statement immediately after a case is executed. A fallthrough statement is used to transfer control to the first statement of the case that is present immediately after the case which has been executed.
<pre><code>package main
import (
"fmt"
)
func main() {
switch num := 1; {
case num < 10:
fmt.Printf("%d is lesser than 10\n", num)
fallthrough
case num < 100:
fmt.Printf("%d is lesser than 100\n", num)
fallthrough
case num < 200:
fmt.Printf("%d is lesser than 200", num)
}
}
</code></pre>