Skip to content

Use sets package from dharmab/collections#684

Merged
dharmab merged 1 commit into
mainfrom
use-sets-package
May 7, 2026
Merged

Use sets package from dharmab/collections#684
dharmab merged 1 commit into
mainfrom
use-sets-package

Conversation

@dharmab
Copy link
Copy Markdown
Owner

@dharmab dharmab commented May 7, 2026

Summary

  • Replace map[AircraftTag]bool with sets.Set[AircraftTag] in pkg/encyclopedia/aircraft.go, converting ~76 map literal initializations to sets.Of(...) and methods to use sets.Contains/sets.All
  • Replace map[uint64]struct{} inner maps in mergeTracker with sets.Set[uint64], and change friendliesMergedWith to return sets.Set[uint64] instead of []uint64
  • Replace map[uint64]struct{} visited sets in pkg/radar (nearby.go, grouping.go, merged.go) and map[string]struct{} platform deduplication in group.go with sets.Set

🤖 Generated with Claude Code

Replace map[T]bool and map[T]struct{} patterns with sets.Set[T]
across the codebase, using sets.Of, sets.New, sets.Contains,
sets.Add, sets.Remove, and sets.Len for clearer intent.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dharmab dharmab merged commit 47b78e5 into main May 7, 2026
8 checks passed
@dharmab dharmab deleted the use-sets-package branch May 7, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant