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) and types that support the error or Stringer interfaces (if methods are enabled) are supported, with other types sorted according to the reflect.Value.String() output which guarantees display stability.

SortKeys is referenced in 10 repositories