Created
June 25, 2018 11:41
-
-
Save ksakae1216/d362df23d9f3cb44fe0138e4fa18a170 to your computer and use it in GitHub Desktop.
This file contains 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 funcpkg | |
import "fmt" | |
// SwitchFunc switch文のサンプルです | |
func SwitchFunc(skill string) { | |
switch skill { | |
case "PHP": | |
fmt.Println("My Skill is PHP") | |
case "Golang": | |
fmt.Println("My Skill is Golang") | |
case "Java": | |
fmt.Println("My Skill is Java") | |
case "Ruby": | |
fmt.Println("My Skill is Ruby") | |
fallthrough | |
case "Rails": | |
fmt.Println("My Skill is Ruby on Rails") | |
case "JavaScript", "HTML", "CSS": | |
fmt.Println("My Skill is Web") | |
default: | |
fmt.Println("My Skill is Nothing") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment