13 lines
167 B
Go
13 lines
167 B
Go
package main
|
|
|
|
import "sort"
|
|
|
|
func sortKeys(m map[string]string) []string {
|
|
var s []string
|
|
for key := range m {
|
|
s = append(s, key)
|
|
}
|
|
|
|
sort.Strings(s)
|
|
return s
|
|
}
|