- goto
package mainimport "fmt"func main() { var i int= 1if i <=10goto LABEL} fmt.Println("before label") LABEL:"after label")}
输出:
after label
- break
for i:=0;i<100++ jj(==4break}}
输出:
0
1
2
3
4
- continue
42continue
原文链接:/go/189937.html
0
1
2
0
1
2
0
1
2
0
1
2