| foris Go’s only looping construct. Here are
three basic types offorloops.
 |  | 
        
        
          |  |   | 
        
        
          |  |  | 
        
        
          |  |  | 
        
        
          | The most basic type, with a single condition. | 	i := 1
	for i <= 3 {
		fmt.Println(i)
		i = i + 1
	}
 | 
        
        
          | A classic initial/condition/after forloop. | 	for j := 7; j <= 9; j++ {
		fmt.Println(j)
	}
 | 
        
        
          | forwithout a condition will loop repeatedly
until youbreakout of the loop orreturnfrom
the enclosing function.
 | 	for {
		fmt.Println("loop")
		break
	}
}
 |