Skip to content

Instantly share code, notes, and snippets.

@GivenZeng
Created June 21, 2018 06:41
Show Gist options
  • Save GivenZeng/4cebb29f6b4c2d9bcdd3ebc22c885714 to your computer and use it in GitHub Desktop.
Save GivenZeng/4cebb29f6b4c2d9bcdd3ebc22c885714 to your computer and use it in GitHub Desktop.
golang contine
package main
import "fmt"
func main() {
LOOP_TEST:
for j := 1; j < 3; j += 1 {
fmt.Println("loop1")
for i := 1; i < 3; i = i + 1 {
fmt.Println("loop2")
continue LOOP_TEST
fmt.Println("vim-go")
}
}
fmt.Println("after continue")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment