|
|
@ -125,7 +125,7 @@ type stringGroup struct { |
|
|
|
func groupStrings(toGroup []string) []stringGroup { |
|
|
|
stringMap := map[string][]string{} |
|
|
|
for _, s := range toGroup { |
|
|
|
first := strings.ToUpper(s[:1]) |
|
|
|
first := strings.ToUpper(strings.Split(s, "")[0]) |
|
|
|
stringMap[first] = append(stringMap[first], s) |
|
|
|
} |
|
|
|
stringGroups := []stringGroup{} |
|
|
|