Last active
August 2, 2019 04:00
-
-
Save sahajre/01df16fd31d9eb6c87438cd11495f680 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 1: | |
| fmt.Print("case 1") | |
| fallthrough | |
| case 42: | |
| fmt.Print("Hello, ") | |
| fallthrough | |
| case 84: | |
| fmt.Print("世") | |
| fallthrough | |
| case 404: | |
| fmt.Println("界") | |
| case 440: | |
| fmt.Println("case 440") | |
| default: | |
| fmt.Println("default") | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment