mirror of
https://github.com/jech/galene.git
synced 2024-11-12 19:55:59 +01:00
Fix building of galenectl with Go 1.20.
Package slices doesn't exist in 1.20.
This commit is contained in:
parent
19c89386da
commit
a327711508
1 changed files with 4 additions and 2 deletions
|
@ -15,7 +15,7 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"slices"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -115,7 +115,9 @@ func main() {
|
||||||
for name := range commands {
|
for name := range commands {
|
||||||
names = append(names, name)
|
names = append(names, name)
|
||||||
}
|
}
|
||||||
slices.Sort(names)
|
sort.Slice(names, func(i, j int) bool {
|
||||||
|
return names[i] < names[j]
|
||||||
|
})
|
||||||
for _, name := range names {
|
for _, name := range names {
|
||||||
fmt.Fprintf(
|
fmt.Fprintf(
|
||||||
flag.CommandLine.Output(),
|
flag.CommandLine.Output(),
|
||||||
|
|
Loading…
Reference in a new issue