Skip to content

Commit

Permalink
ref(collections): change maps/slice imports (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
plastikfan committed Jan 29, 2024
1 parent 75cd479 commit 795d4f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion generators/gola/internal/collections/sorted-keys-map.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package collections

import (
"cmp"
"slices"

"github.com/samber/lo"
"golang.org/x/exp/slices"
)

// https://go.dev/blog/comparable
Expand Down
4 changes: 2 additions & 2 deletions src/clif/evaluate.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package clif

import (
"maps"
"slices"
"strings"

"github.com/samber/lo"
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
)

var booleans = []string{"true", "false"}
Expand Down
6 changes: 3 additions & 3 deletions src/collections/sorted-keys-map.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package collections

import (
"cmp"
"slices"

"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
"github.com/samber/lo"
)

// https://go.dev/blog/comparable
Expand All @@ -19,7 +19,7 @@ import (
type OrderedKeysMap[K cmp.Ordered, V any] map[K]V

func (m *OrderedKeysMap[K, V]) Keys() []K {
keys := maps.Keys(*m)
keys := lo.Keys(*m)

slices.Sort(keys)

Expand Down

0 comments on commit 795d4f5

Please sign in to comment.