test1 := false
test2 := true
test3 := false
switch {
case test1:
fmt.Println(1)
fallthrough
case test2:
fmt.Println(2)
fallthrough
case test3:
fmt.Println(3)
}
In a case or default clause, the last non-empty statement may be a (possibly labeled) "fallthrough" statement to indicate that control should flow from the end of this clause to the first statement of the next clause