Last active
November 18, 2016 07:07
-
-
Save ijingo/1db19a8938c455be5f0949b8ecd2fb1f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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