Recursively resolve pointer

This commit is contained in:
Daniel Ponte 2024-12-29 14:42:22 -05:00
parent 783c76fecd
commit 80d3377187

View file

@ -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) {