Is this valid?

https://play.golang.org/p/xZdOWbm7Ew

package main

import (
"fmt"
)

func main() {
a := []int{0,1,2,3,4,5}
switch 1 {
case a...:
 fmt.Println("match")
default:
  fmt.Println("no match")
}
}

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to