Created
August 1, 2019 15:24
-
-
Save sahajre/70ee19676d4321c01c889302a7e789d3 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() { | |
| i := 42 | |
| switch i { | |
| case 0: | |
| fmt.Print("case 0") | |
| case 42: | |
| fmt.Println("Hello, 世界") | |
| default: | |
| fmt.Println("default") | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment