package main import ( "fmt" ) func main() { i := 0 loop: fmt.Println("loop", i) i++ if i < 10 { goto loop } fmt.Println("Loop ended") }