Commit a3277115 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix building of galenectl with Go 1.20.

Package slices doesn't exist in 1.20.
parent 19c89386
......@@ -15,7 +15,7 @@ import (
"net/url"
"os"
"path/filepath"
"slices"
"sort"
"strings"
"time"
......@@ -115,7 +115,9 @@ func main() {
for name := range commands {
names = append(names, name)
}
slices.Sort(names)
sort.Slice(names, func(i, j int) bool {
return names[i] < names[j]
})
for _, name := range names {
fmt.Fprintf(
flag.CommandLine.Output(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment