Is there a way to iterate over a range of integers?
The idiomatic approach in Go is to write a for loop like this. for i := 1; i <= 10; i++ { fmt.Println(i) } There’s definitely advantages in ranges and they’re used in many other languages, but a Go design principle is to only introduce an abstraction if the benefits significantly outweigh the costs (including … Read more