Created
November 18, 2016 07:07
-
-
Save ijingo/71474a6d90371c4d165c5ebaeab3f10b 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
for{ | |
x := 1 | |
switch { | |
case x > 0: | |
fmt.Println("a") | |
break | |
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