package main import ( "slices" ) func sortKeys(m map[string]string) []string { var s []string for key := range m { s = append(s, key) } slices.Sort(s) return s }