Copyright 2017, The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE.md file.
package value
import (
)
SortKeys sorts a list of map keys, deduplicating keys if necessary. The type of each value must be comparable.
This can happen in rare situations, so we fallback to just comparing the unique pointer for a reflect.Type. This guarantees deterministic ordering within a program, but it is obviously not stable.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.