Building a Blocking Queue From Scratch in Go (So You Actually Understand Channels)

Go channels are magic. You write ch <- value, and somehow producers block when the queue is full, consumers block when it’s empty, and…