1
0
Fork 0
mirror of https://github.com/vbatts/talks.git synced 2024-12-25 16:16:30 +00:00
talks/2015/02-devconf.cz/ugly0.go
2015-02-06 01:04:10 +01:00

16 lines
185 B
Go

// +build ignore
package main
func main() {
// START1 OMIT
c := make(chan int)
go func() {
for i := 0; i < 10; i++ {
c <- i
}
close(c)
}()
println(<-c)
// STOP1 OMIT
}