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") } }