|
|
@@ -265,6 +265,7 @@ func recursiveUpdate(dst, src reflect.Value) error {
|
|
|
if !dstField.IsValid() {
|
|
|
return fmt.Errorf("field %s does not exist in the struct", key.String())
|
|
|
}
|
|
|
+ fmt.Printf("Updating key: %s with value of type: %s\n", key.String(), src.MapIndex(key).Type())
|
|
|
// Initialize the map if it's nil and we're trying to set a map
|
|
|
if dstField.Kind() == reflect.Map && dstField.IsNil() && src.MapIndex(key).Kind() == reflect.Map {
|
|
|
dstField.Set(reflect.MakeMap(dstField.Type()))
|