loop through elements of channel golang code example Example: golang loop over a channel package main