Skip to content

Instantly share code, notes, and snippets.

@ijingo
Last active November 18, 2016 07:07
Show Gist options
  • Save ijingo/1db19a8938c455be5f0949b8ecd2fb1f to your computer and use it in GitHub Desktop.
Save ijingo/1db19a8938c455be5f0949b8ecd2fb1f to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
LOOP:
for{
x := 1
switch {
case x > 0:
fmt.Println("a")
break LOOP
case x == 1:
fmt.Println("b")
default:
fmt.Println("c")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment