What is the idiomatic way to get an integer iterator when using scanner.Scan() in a for loop like so:
i := 0
for scanner.Scan() {
nextInt, _ := strconv.Atoi(scanner.Text())
ints[i] = nextInt
i++
}
something like this, where the i increments on each iteration:
for i := range scanner.Scan() {...}