Range based for loop is giving InvalidRangeExpr error.
Expected Behaviour
It should not give InvalidRangeExpr error. Either range based for loop should be replaced by initial/condition/after for loop or constant integer type value should be replace by an array, slice or map.
Issue
Range based
for
loop is giving InvalidRangeExpr error.Expected Behaviour
It should not give InvalidRangeExpr error. Either range based
for
loop should be replaced by initial/condition/afterfor
loop or constant integer type value should be replace by an array, slice or map.Reference: (https://gobyexample.com/for)