SyntaxFix
Write A Post
Hire A Developer
Questions
You can, and should, just write a for loop. Simple, obvious code is the Go way.
for i := 1; i <= 10; i++ { fmt.Println(i) }