Run ❯
×
Change Orientation
Change Theme, Dark/Light
package main import ("fmt") func main() { a := 3 switch a { case 1: fmt.Println("a is one") case "b": fmt.Println("a is b") } }
./prog.go:11:2: cannot use "b" (type untyped string) as type int