Debian Codegraph @

_test/select4.go

raw symbols SCIP
1 package main
2
3 func main() {
4 c1 := make(chan string)
5
6 go func() { c1 <- "done" }()
7
8 select {
9 case msg1 := <-c1:
10 println("received from c1:", msg1)
11 }
12 println("Bye")
13 }
14
15 // Output:
16 // received from c1: done
17 // Bye