fmt.Println(reflect.TypeOf(var))
switch xxx.(type){
case int:....
case float32:...
case float64:...
case string:...
}
For the enumeration of type, fallthrough cannot be used, and float32 and float64 are two different types (there is no separate float type), while int contains int64