From 16e19ab9f9b35a130eab32ed7a02b567709d737d Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Wed, 17 Jan 2018 11:40:21 -0800 Subject: [PATCH] Make nested struct pointers work --- request.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/request.go b/request.go index 88bf2ba..da42c05 100644 --- a/request.go +++ b/request.go @@ -542,6 +542,10 @@ func handlePointer(attribute interface{}, args []string, fieldType reflect.Type, concreteVal = reflect.ValueOf(&cVal) case uintptr: concreteVal = reflect.ValueOf(&cVal) + case map[string]interface{}: + var err error + concreteVal, err = handleStruct(attribute, args, fieldType, fieldValue) + return concreteVal.Elem(), err default: return reflect.Value{}, ErrUnsupportedPtrType }