The Go for loop: one loop to rule them all
Go has exactly one loop keyword, and it covers everything: counting, while loops, infinite loops and ranging over collections.
Go has exactly one loop keyword, and it covers everything: counting, while loops, infinite loops and ranging over collections.