Concurrency
1. Create a channel
ch := make(chan int)
2. Use channel in a goroutine
func f(x int, ch chan int) {
ch <- x
}
func main() {
ch := make(chan int)
go f(x, ch)
y := <- ch
}
ch := make(chan int)
func f(x int, ch chan int) {
ch <- x
}
func main() {
ch := make(chan int)
go f(x, ch)
y := <- ch
}