Every programming language has a way of looping, and Go is no exception. Go offers the for loop, which allows you to iterate over many kinds of data types.
Go does not offer support for the while keyword. However, the for loops in Go can replace while loops!