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