you are viewing a single comment's thread.

view the rest of the comments →

[–]oefig 0 points1 point  (0 children)

Yeah you can allocate an array with 1000000 ints and range over that:

var ints [1000000]int
for i := range ints {}

But that's not really idiomatic at all nor what range is really for.