golang switch case fallthrough

Developer from somewhere

TIL: in go, a switch cases don’t automatically fallthrough. So, this:

switch something {
  case 0:
  case 1:
    fmt.Println("handling both")
}

won’t work as intended. Instead it should be:

switch something {
  case 0:
    fallthrough
  case 1:
    fmt.Println("handling both")
}