mirror of
https://github.com/vbatts/talks.git
synced 2025-06-05 11:32:29 +00:00
flatten folder
This commit is contained in:
parent
5783dd7f09
commit
ffd598d420
12 changed files with 15 additions and 12 deletions
16
2015/02-devconf.cz/ugly0.go
Normal file
16
2015/02-devconf.cz/ugly0.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue