package main
import "fmt" func main() { for a:=0;a<5;a++{ fmt.Println(a) if a>3{ goto Loop }
}
Loop: //放在for后边 fmt.Println("test") }