Labels work with continue too:
outer:
for i := 0; i < 3; i++ {
for j := 0; j < 3; j++ {
if j == 1 {
continue outer
}
fmt.Printf("(%d,%d) ", i, j)
}
}
This prints only pairs where j is . When j equals , continue outer skips to the next iteration of the outer loop, bypassing j values of and .