|
@@ -41,7 +41,7 @@ func SliceValueElem(v reflect.Value) reflect.Value {
|
|
}
|
|
}
|
|
|
|
|
|
func IsSliceValueOf(v reflect.Value, elementKind reflect.Kind) bool {
|
|
func IsSliceValueOf(v reflect.Value, elementKind reflect.Kind) bool {
|
|
- return v.Kind() == reflect.Slice && v.Elem().Kind() == elementKind
|
|
|
|
|
|
+ return v.Kind() == reflect.Slice && v.Type().Elem().Kind() == elementKind
|
|
}
|
|
}
|
|
|
|
|
|
func IsValueInteger(v reflect.Value) bool {
|
|
func IsValueInteger(v reflect.Value) bool {
|