Last Updated: May 22, 2026
A nil channel is what you get when you declare a channel variable but never call make on it. Every operation on it blocks forever, and closing it panics. The same property turns nil channels into a precise tool for switching cases on and off inside a select.