Check out example codes for "go switch case". 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")
    default:
        fmt.Println("It's a weekday")
    }

Learn ReactJs, React Native from akashmittal.com