Skip to content

Commit

Permalink
Use Go standard library slices package instead of x/exp/slices
Browse files Browse the repository at this point in the history
The former is available since Go 1.21 and the latter is merely a wrapper
around it when using Go ≥ 1.21. Use the standard library package
directly.

We cannot yet switch out x/exp/maps for the standard library maps
package as the maps.Keys function used in statedb code base is only
available in Go ≥ 1.23.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
  • Loading branch information
tklauser committed Sep 5, 2024
1 parent db973db commit ed1d3b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions reconciler/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ package reconciler
import (
"errors"
"fmt"

"golang.org/x/exp/slices"
"slices"
)

var closedWatchChannel = func() <-chan struct{} {
Expand Down

0 comments on commit ed1d3b9

Please sign in to comment.