(m map[string]string)
| 311 | } |
| 312 | |
| 313 | func SortedStringMapKeys(m map[string]string) []string { |
| 314 | res := make([]string, len(m)) |
| 315 | i := 0 |
| 316 | for k := range m { |
| 317 | res[i] = k |
| 318 | i++ |
| 319 | } |
| 320 | sort.Strings(res) |
| 321 | |
| 322 | return res |
| 323 | } |
| 324 | |
| 325 | // CopyMap clones a map of strings. |
| 326 | func CopyMap(source map[string]string) map[string]string { |