For is Go's "while"For is Go's "while" At that point you can drop the semicolons: C's while is spelled for in Go. for-is-gos-while.go package mainimport "fmt"func main() { sum := 1 for sum < 1000 { sum += sum } fmt.Println(sum)}