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