Skip to content

Instantly share code, notes, and snippets.

@tomtsang
Created February 7, 2018 06:33
Show Gist options
  • Save tomtsang/645fd2df5f4d74c9e304bcf7d350a8ba to your computer and use it in GitHub Desktop.
Save tomtsang/645fd2df5f4d74c9e304bcf7d350a8ba to your computer and use it in GitHub Desktop.
golang-switch-pattern1
switch var1 {
case val1:
...
case val2:
...
default:
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment