|
@@ -64,6 +64,10 @@ func IsValueStructOrStructPointer(v reflect.Value) bool {
|
|
return v.Kind() == reflect.Struct || IsValueStructPointer(v)
|
|
return v.Kind() == reflect.Struct || IsValueStructPointer(v)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func IsValueStructSliceOrStructSlicePointer(v reflect.Value) bool {
|
|
|
|
+ return IsSliceValueOf(v, reflect.Struct) || (v.Kind() == reflect.Pointer && IsSliceValueOf(v.Elem(), reflect.Struct))
|
|
|
|
+}
|
|
|
|
+
|
|
func IsValueTime(v reflect.Value) bool {
|
|
func IsValueTime(v reflect.Value) bool {
|
|
return v.Kind() == reflect.Struct && v.Type().String() == "time.Time"
|
|
return v.Kind() == reflect.Struct && v.Type().String() == "time.Time"
|
|
}
|
|
}
|