github.com/april1989/origin-go-tools@v0.0.32/cmd/guru/testdata/src/peers-json/main.go (about) 1 package main 2 3 // Tests of channel 'peers' query, -format=json. 4 // See go.tools/guru/guru_test.go for explanation. 5 // See peers-json.golden for expected query results. 6 7 func main() { 8 chA := make(chan *int) 9 <-chA 10 select { 11 case <-chA: // @peers peer-recv-chA "<-" 12 } 13 }