Go switch case with fallthrough

If we need to execute other cases after the matching case, we can use fallthrough inside the case statement. For example:

dayOfWeek := 6
switch dayOfWeek {
  case 1:
    fmt.Println("Monday")
  case 2:
    fmt.Println("Tuesday")
  case 3:
    fmt.Println("Wednesday")
  case 4:
    fmt.Println("Thursday")
  case 5:
    fmt.Println("Friday")
  case 6:
    fallthrough
  case 7:
    fmt.Println("Weekend")
  default:
    fmt.Println("Invalid day")
}