commit | 7f07925444bb51fa4cf9dfe6f7661876f8852275 | [log] [tgz] |
---|---|---|
author | David Symonds <dsymonds@golang.org> | Fri Jan 09 11:09:00 2015 +1100 |
committer | David Symonds <dsymonds@golang.org> | Fri Jan 09 15:17:43 2015 +1100 |
tree | a8b61c01a21583a29a69a1c3ef7c09c15ebd5ff5 | |
parent | 60976d353effd937b53a171e7493148a9969e39a [diff] |
Sort map keys when serialising map fields to binary and text formats. This gives deterministic output, albeit somewhat inefficently. I expect the inefficiency to be dwarfed by the reflection involved anyway, but it's easy enough to improve this later if needed.