Check out example codes for "go switch statement". It will help you in understanding the concepts better.

Code Example 1

switch time.Now().Weekday() {
    case time.Saturday, time.Sunday:
        fmt.Println("It's the weekend")
        fmt.Println("It's a weekday")

Code Example 2

switch time {
	case "morning":
		fmt.Println("Time to wake up!")
	case "night":
  		fmt.Println("Time to go to bed.")
  		fmt.Println("Enjoy life")

Learn ReactJs, React Native from