Skip to content

Instantly share code, notes, and snippets.

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