aboutsummaryrefslogtreecommitdiffstats
path: root/exercises/switch/switch2/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/switch/switch2/main.go')
-rw-r--r--exercises/switch/switch2/main.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/exercises/switch/switch2/main.go b/exercises/switch/switch2/main.go
new file mode 100644
index 0000000..153ac39
--- /dev/null
+++ b/exercises/switch/switch2/main.go
@@ -0,0 +1,12 @@
+package main
+
+import "fmt"
+
+func main() {
+ switch {
+ case 0 > 1:
+ fmt.Println("zero is greater than one")
+ case:
+ fmt.Println("one is greater than zero")
+ }
+}