Skip to content

Commit c70fb9e

Browse files
committed
Make nested struct pointers work
1 parent 0400041 commit c70fb9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

request.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,10 @@ func handlePointer(attribute interface{}, args []string, fieldType reflect.Type,
542542
concreteVal = reflect.ValueOf(&cVal)
543543
case uintptr:
544544
concreteVal = reflect.ValueOf(&cVal)
545+
case map[string]interface{}:
546+
var err error
547+
concreteVal, err = handleStruct(attribute, args, fieldType, fieldValue)
548+
return concreteVal.Elem(), err
545549
default:
546550
return reflect.Value{}, ErrUnsupportedPtrType
547551
}

0 commit comments

Comments
 (0)