--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Maps are the only thing that can cause differences, due to its random iteration order, so I spelt that out in the docs.
Try go-codec. You will love it (shameless plug).
And that is exactly what happens.
Encoding always uses the natural consistent ordering (iteration for arrays, slices, fields of a struct). However, there is no consistent ordering for maps, so that's where we have to do work, to sort keys first and then encode the corresponding key value pairs.
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/e-y8vQS1Yj8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.