1 Star 0 Fork 0

haimait/golang

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
test_goto.go 364 Bytes
Copy Edit Raw Blame History
Your Name authored 2021-11-29 11:06 . 'golang'
/* package main
import "fmt"
func test2() {
for i := 0; i < 10; i++ {
for j := 0; j < 10; j++ {
if i >= 2 && j >= 2 {
goto END
}
fmt.Printf("%v,%v\n", i, j)
}
}
END:
fmt.Printf("END...")
}
func test1() {
i := 1
if i >= 2 {
fmt.Println("2")
} else {
goto END
}
END:
fmt.Println("END....")
}
func main() {
// test1()
test2()
}
*/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/haima1004/golang.git
git@gitee.com:haima1004/golang.git
haima1004
golang
golang
master

Search