aboutsummaryrefslogtreecommitdiffstats
path: root/exercises/switch/switch1/main.go
blob: 055b29736ac9186a50ef464dfd80a16acd86ad9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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")
	}
}