Does V have a map[string]any{}
dictionary type?
#21769
Unanswered
Avey777
asked this question in
Questions and Answers
Replies: 4 comments 8 replies
-
Instead of Any you can use sum types and make a map for the same. |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
-
In other words, you have to intentionally break the rules. V won't allow you to do it by accident. |
Beta Was this translation helpful? Give feedback.
4 replies
-
module main
json2.Any can basically meet the needs if the key supports int list map |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If the map can support different types of values, it will be very concise for organizing data.
In addition to using struct, is there a better way to implement similar data structures more quickly?
Beta Was this translation helpful? Give feedback.
All reactions