Channels are typed queues used for goroutines to communicate with each other in a thread-safe manner.

Zero value of a channel is nil.

Channel basics

https://codeeval.dev/gist/5162213db9cda1eab9d5e7ae801f052a

Learn more about channels.