Sign in
go
/
website
/
ca1fc50a3bcb2e30da453bcc132e9aed9387a3b1
/
.
/
_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)
}