You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code encounters an unknown path: Shelf.Orange.Qty error. This happens because the dot package might not be designed to handle nested maps where keys are object
@NV4RE Yeah, that's right. Type any can cause a lot of headaches.
The thing is, you insert Shelf.Orange.Qty, but what is Orange if the type is any ? Anything.
The dot package looks at the type of the field from the structure, but it doesn't know what type was specified to the field during the initialisation of the structure.
But, I see your point. I'll try to find a solution.
Problem:
The code encounters an
unknown path: Shelf.Orange.Qty
error. This happens because thedot
package might not be designed to handle nested maps where keys are objecthttps://go.dev/play/p/wBnrgKh67VU
Expected Behavior:
The
Insert
operation should successfully set theQty
for "Orange" to 5 without errors.Observations:
It seems the
dot
package might not be handling nested maps as expected.The text was updated successfully, but these errors were encountered: