diff options
| author | Dave Collins <[email protected]> | 2013-11-14 21:39:21 -0600 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2013-11-14 21:39:21 -0600 |
| commit | de6d1a24a06fb32fa945085463fcc922dfadf152 (patch) | |
| tree | ddf05b0ed5d7284842cda7f54349772191661365 /spew/format.go | |
| parent | f0ba95e184f4063f60a2338ad95a7ee1fc554e62 (diff) | |
Reorganize the new map key sorting functionality.
This commit moves the new code related to sorting reflect.Value items into
common.go since it is accessed by both the formatter and the dumper. It
also adds comments to the new functions and unexports SortValues since it
should be an internal function only.
Diffstat (limited to 'spew/format.go')
| -rw-r--r-- | spew/format.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spew/format.go b/spew/format.go index fc57fda..b6b1fb0 100644 --- a/spew/format.go +++ b/spew/format.go @@ -303,7 +303,7 @@ func (f *formatState) format(v reflect.Value) { } else { keys := v.MapKeys() if f.cs.SortKeys { - SortValues(keys) + sortValues(keys) } for i, key := range keys { if i > 0 { |
