Skip to content

Commit 458af9d

Browse files
dharmabclaude
andauthored
Use stdlib slices package in nearby.go (#690)
Replace `golang.org/x/exp/slices` with the stdlib `slices` package in `pkg/radar/nearby.go`, and demote `golang.org/x/exp` to an indirect dependency via `go mod tidy`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0443b7e commit 458af9d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ require (
3030
github.com/spf13/viper v1.19.0
3131
github.com/stretchr/testify v1.11.1
3232
github.com/zaf/resample v1.5.0
33-
golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b
3433
golang.org/x/sys v0.41.0
3534
google.golang.org/grpc v1.79.3
3635
gopkg.in/hraban/opus.v2 v2.0.0-20230925203106-0188a62cb302
@@ -245,6 +244,7 @@ require (
245244
go.uber.org/zap v1.27.0 // indirect
246245
go.yaml.in/yaml/v3 v3.0.4 // indirect
247246
golang.org/x/crypto v0.48.0 // indirect
247+
golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b // indirect
248248
golang.org/x/exp/typeparams v0.0.0-20260209203927-2842357ff358 // indirect
249249
golang.org/x/mod v0.33.0 // indirect
250250
golang.org/x/net v0.51.0 // indirect

pkg/radar/nearby.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package radar
22

33
import (
44
"cmp"
5+
"slices"
56

67
"github.com/dharmab/collections/sets"
78
"github.com/dharmab/skyeye/pkg/brevity"
@@ -10,7 +11,6 @@ import (
1011
"github.com/martinlindhe/unit"
1112
"github.com/paulmach/orb"
1213
"github.com/paulmach/orb/geo"
13-
"golang.org/x/exp/slices"
1414
)
1515

1616
func (r *Radar) findNearbyGroups(pointOfInterest orb.Point, minAltitude, maxAltitude, radius unit.Length, coalition coalitions.Coalition, filter brevity.ContactCategory, excludedIDs []uint64) []*group {

0 commit comments

Comments
 (0)