Created
August 15, 2019 19:30
-
-
Save grantseltzer/e28e08b42c0fcf58117dfe77ad6a3d17 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 switchers | |
func SwitchFunction(a, b int, c *int) string { | |
switch *c { | |
case a: | |
return "a" | |
case b: | |
return "b" | |
default: | |
return "c" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment