Skip to content

How to deal with maps. #115

Closed Answered by vearutop
tpoxa asked this question in Q&A
Discussion options

You must be logged in to vote

you can use some of the ordered maps implementations, like https://github.com/wk8/go-ordered-map for example

but I would not recommend depending on maps ordering, since it does not have any semantics in JSON and at any point of further processing original order can be lost

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tpoxa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants