Skip to content

Instantly share code, notes, and snippets.

@ksakae1216
Created June 25, 2018 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksakae1216/d362df23d9f3cb44fe0138e4fa18a170 to your computer and use it in GitHub Desktop.
Save ksakae1216/d362df23d9f3cb44fe0138e4fa18a170 to your computer and use it in GitHub Desktop.
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