I have two goroutines independently producing data, each sending it to a channel. In my main goroutine, I\'d like to consume each of these outputs as they come in, but don\'t ca
Why not use goroutines? As your channels are getting closed, the whole thing turns into a simple range loop.
func foo(c chan whatever, prefix s) { for v := range c { fmt.Println(prefix, v) } } // ... go foo(mins, "Min:") go foo(maxs, "Max:")