Go Channels Examples
Creating Go ChannelsChannels in Golang are like Unix pipes. Create channels using 'make()' and the 'chan' keyword by passing the data type
my_pipe := make(chan string)
Reading from Go ChannelsTo read from a Go channel use the "<-" operator
value := <-my_pipe
Writing to Go ChannelsYou can write to Go Channels using the same "<-" operator.
my_pipe <- "1000"