Make nested struct pointers work

This commit is contained in:
Marc Abramowitz 2018-01-17 11:40:21 -08:00
parent b28beab7f3
commit 16e19ab9f9
1 changed files with 4 additions and 0 deletions

View File

@ -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
}