1
0
Fork 0
mirror of https://github.com/vbatts/talks.git synced 2025-06-05 11:32:29 +00:00

flatten folder

This commit is contained in:
Vincent Batts 2015-02-06 01:04:10 +01:00
parent 5783dd7f09
commit ffd598d420
12 changed files with 15 additions and 12 deletions

View file

@ -0,0 +1,16 @@
// +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
}