package main import "fmt" const ( Red = "RED" Green = "GREEN" Blue = "BLUE" ) func main() { var color string = Red switch color { case Red: fmt.Println("The color is red.") case Green: fmt.Println("The color is green.") case Blue: fmt.Println("The color is blue.") default: fmt.Println("Invalid color.") } }