diff --git a/functions.go b/functions.go index 2c6c291..abb6d43 100644 --- a/functions.go +++ b/functions.go @@ -1,6 +1,8 @@ package main -import "sort" +import ( + "slices" +) func sortKeys(m map[string]string) []string { var s []string @@ -8,6 +10,6 @@ func sortKeys(m map[string]string) []string { s = append(s, key) } - sort.Strings(s) + slices.Sort(s) return s }