github.com/goplus/gop@v1.2.6/x/format/_testdata/syntax/index.gop (about) 1 import "fmt" 2 3 func f(...T) { 4 } 5 6 a++ 7 arr := [...]int{1: 3} 8 m := make(map[string]chan interface{}) 9 for range arr[1:] { 10 foo: 11 *(p) = 1 12 fmt.Println(f(arr...)) 13 m["a"] <- true 14 } 15 for i := 0; i < 10; i++ { 16 var t *T 17 if false { 18 } else { 19 } 20 select { 21 case <-m["a"]: 22 } 23 switch { 24 case i == 10: 25 } 26 switch t.(type) { 27 case int: 28 defer f() 29 go f().Println("Hi") 30 } 31 }