☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
select4.go
☽
☼
_test/select4.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
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