deckarep/golang-set
A simple, battle-tested and generic set type for the Go language. Trusted by GoogleCloudPlatform, Docker, 1Password, Ethereum and Hashicorp. observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 89
- Release rhythm 48
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 251.0
- age_days: 4809
- days_rel: 135
- days_push: 67
- n_releases_24m: 3
Adoption not part of the score
4700 stars · 290 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A generic, battle-tested set data structure library for Go, offering both thread-safe and non-thread-safe set implementations modeled after Python's set collection. It supports set operations like union, intersection, and difference, plus JSON/BSON marshaling and Go 1.23+ iterators.
Use cases
- need a set data structure in Go
- deduplicate items in a Go collection
- perform set operations like union and intersection in Go
- thread-safe set for concurrent Go code
- replace Python-style sets when porting to Go
When to choose
- you need a mature, widely-adopted set implementation in Go
- you need thread-safe sets for concurrent access
- you want generics support on Go 1.18+
When to avoid
- you only need simple deduplication and prefer a plain map[T]struct{}
- you're on Go versions older than 1.18
Facets
library · maturity stable
concurrency developer-tools developer-tools go cross-platform set data-structures generics threadsafe golang algorithms
1 source
- readme: https://github.com/deckarep/golang-set · fetched 2026-08-28 · ff934714582c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| deckarep/golang-set | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="deckarep/golang-set")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem