|
@@ -75,7 +75,7 @@ func parseType(from, to reflect.Value, fieldName string) IErrorArgs {
|
|
|
func realValue(val reflect.Value) reflect.Value {
|
|
|
if val.Kind() == reflect.Ptr || val.Kind() == reflect.Interface {
|
|
|
//if val.Kind() == reflect.Interface {
|
|
|
- if val.IsNil() && val.Kind() == reflect.Ptr && val.CanSet() {
|
|
|
+ if val.IsNil() && val.Kind() == reflect.Ptr {
|
|
|
val.Set(reflect.New(val.Type().Elem()))
|
|
|
}
|
|
|
// check
|