Go Channels Examples
Channels in Golang are like Unix pipes. Create channels using
make() and the
chan keyword by passing the data type
my_pipe := make(chan string)
To read from a Go channel use the
value := <-my_pipe
You can write to Go Channels using the same
my_pipe <- "1000"
When you write on a closed channels you will trigger an error!