📌  相关文章
📜  go 跳回外循环 - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:45:01.593000             🧑  作者: Mango

代码示例1
outerloop:
    for i, line := range m {
        for _, v := range line {
            if v < 0 {
                fmt.Println(v)
                break outerloop
            }
        }
    }
// Consider refactoring the nested loop into a function and use return to break out.