More idiomatic Go code using slices as channels