I want use case statement instead of switch for arithmetic comparison. Could you please let me know what’s wrong with the following code??
package main
import "fmt"
func main(){
a := 2
switch a {
case a < 5 :
fmt.Println("value is less than 5")
}
}