Use github.com/rogpeppe/go-internal/fmtsort for stable map output (#67)
github.com/rogpeppe/go-internal factors out an opinionated selection of
internal packages and functionality from the Go standard library. One
such package is fmtsort:
Package fmtsort provides a general stable ordering mechanism for
maps, on behalf of the fmt and text/template packages. It is not
guaranteed to be efficient and works only for types that are valid
map keys.
Use this package to ensure the Formatter output for maps is stable.
Fixes #47
4 files changed