I created a channel and want to discharge it without using received values. However, compiler doesn't allow me to write code like this:
for i := range ch {
// code
}
complains that i is unused
substituting _ for i doesn't work either
What is the idiomatic way to do it?