Sign in
go
/
website
/
9110c24c8981881a82ecb277b9aceca14bdb314b
/
.
/
_content
/
tour
/
concurrency
/
buffered-channels.go
blob: b5abf10ef8159b41a713077b5cea04bd72a20f76 [
file
] [
log
] [
blame
]
// +build OMIT
package main
import "fmt"
func main() {
ch := make(chan int, 2)
ch <- 1
ch <- 2
fmt.Println(<-ch)
fmt.Println(<-ch)
}