|
@@ -40,6 +40,10 @@ func SliceValueElem(v reflect.Value) reflect.Value {
|
|
|
return elem
|
|
|
}
|
|
|
|
|
|
+func IsSliceValueOf(v reflect.Type, elementKind reflect.Kind) bool {
|
|
|
+ return v.Kind() == reflect.Slice && v.Elem().Kind() == elementKind
|
|
|
+}
|
|
|
+
|
|
|
func IsValueInteger(v reflect.Value) bool {
|
|
|
return v.Kind() >= reflect.Int && v.Kind() <= reflect.Int64
|
|
|
}
|