Use stdlib maps/slices

This commit is contained in:
Kovid Goyal
2024-05-04 14:34:40 +05:30
parent 4998fe66b9
commit e1b367e1b3
27 changed files with 55 additions and 60 deletions

View File

@@ -7,12 +7,10 @@ import (
"kitty/tools/tui/loop"
"kitty/tools/utils"
"regexp"
"slices"
"strconv"
"strings"
"sync"
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
)
var _ = fmt.Print
@@ -309,5 +307,5 @@ func ResolveShortcuts(actions []*KeyAction) []*KeyAction {
action_map[key] = ac
}
}
return maps.Values(action_map)
return utils.Values(action_map)
}