Recursively resolve pointer
This commit is contained in:
parent
783c76fecd
commit
80d3377187
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ func (o *options) unmIterFields(r *http.Request, destStruct reflect.Value) error
|
|||
|
||||
continue
|
||||
}
|
||||
if destFieldType.Kind() == reflect.Ptr {
|
||||
for destFieldType.Kind() == reflect.Ptr {
|
||||
destFieldType = destFieldType.Elem()
|
||||
}
|
||||
if reflect.ValueOf(ff).CanConvert(destFieldType) {
|
||||
|
|
Loading…
Reference in a new issue