From 550ce83cb97c69998c5bb509a8d52907d417b256 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sat, 16 Nov 2013 16:05:42 -0600 Subject: Update README and doc.go with new SortKeys option. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index ed3a9fd..b62ff24 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,14 @@ options. See the ConfigState documentation for more details. * ContinueOnMethod Enables recursion into types after invoking error and Stringer interface methods. Recursion after method invocation is disabled by default. + +* 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 with other types sorted according to the + reflect.Value.String() output which guarantees display stability. + Natural map order is used by default. ``` ## License -- cgit v1.2.3