diff options
Diffstat (limited to 'exercises/switch/switch1/main.go')
-rw-r--r-- | exercises/switch/switch1/main.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/exercises/switch/switch1/main.go b/exercises/switch/switch1/main.go new file mode 100644 index 0000000..055b297 --- /dev/null +++ b/exercises/switch/switch1/main.go @@ -0,0 +1,17 @@ +// switch1 +// Make me compile! + +// I AM NOT DONE +package main + +import "fmt" + +func main() { + status := "open" + switch { + case "open": + fmt.Println("status is open") + case "closed": + fmt.Println("status is closed") + } +} |