summaryrefslogtreecommitdiff
path: root/spew/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'spew/config.go')
-rw-r--r--spew/config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/spew/config.go b/spew/config.go
index a2eab61..1faca1b 100644
--- a/spew/config.go
+++ b/spew/config.go
@@ -73,6 +73,12 @@ type ConfigState struct {
// NOTE: This flag does not have any effect if method invocation is disabled
// via the DisableMethods or DisablePointerMethods options.
ContinueOnMethod bool
+
+ // SortKeys specifies map keys should be sorted before being printed. Use
+ // this to have a more deterministic, diffable output. Note that only
+ // native types (bool, int, uint, floats, uintptr and string) are supported,
+ // other key sequences will displayed in the original order.
+ SortKeys bool
}
// Config is the active configuration of the top-level functions.