Break usage in Go in Go

package main

import (  
    "fmt"
)

func main() {  
    for i := 1; i <= 5; i++ {
        if i > 2 {
            break 
        }
        fmt.Println( i)
    }
    fmt.Println("for loop ended")
}


output:
1
2
for loop ended