@@ -53,7 +53,7 @@ func IsTypeFloat(t reflect.Type) bool {
}
func IsTypeStructPointer(t reflect.Type) bool {
- return t.Kind() == reflect.Pointer && t.Kind() == reflect.Struct
+ return t.Kind() == reflect.Pointer && t.Elem().Kind() == reflect.Struct
func IsTypeStructOrStructPointer(t reflect.Type) bool {
@@ -57,7 +57,7 @@ func IsValueFloat(v reflect.Value) bool {
func IsValueStructPointer(v reflect.Value) bool {
- return v.Kind() == reflect.Pointer && v.Kind() == reflect.Struct
+ return v.Kind() == reflect.Pointer && v.Elem().Kind() == reflect.Struct
func IsValueStructOrStructPointer(v reflect.Value) bool {