title: InvalidRangeExpr layout: article

InvalidRangeExpr occurs when the type of a range expression is not array,
slice, string, map, or channel.

Example:
 func f(i int) {
 	for j := range i {
 		println(j)
 	}
 }