package main import ( "fmt" ) func main() { LABEL1: for { for i := 0; i < 10; i++ { if i > 3 { break LABEL1 } } } fmt.Println("ok") }
package main import ( "fmt" ) func main() { for { for i := 0; i < 10; i++ { if i > 3 { goto LABEL1 } } } LABEL1: fmt.Println("ok") }
package main import ( "fmt" ) func main() { LABEL1: for i := 0; i < 10; i++ { fmt.Println(i) for { continue LABEL1 } } fmt.Println("ok") }