Chromium Code Reviews
DescriptionLocal modifications of golang source: Sort the keys of a map when printing them.
R=azani@chromium.org, azani
BUG=#461
When printing a map using reflection, sort the keys of the map if they are of numeric or string type. This helps make the deep-printing a Go structures more deterministic and therefore more useful in tests.
Committed: https://chromium.googlesource.com/external/mojo/+/4cb142bcbe768ca086b44d9acb1e15650fca7f5a
Patch Set 1 #
Messages
Total messages: 6 (3 generated)
|
||||||||||||||||||||||||||||