uber-go/atomic
Wrapper types for sync/atomic which enforce atomic access observed · 2026-08-28
Health v2 · maintenance only
30/100
- Activity 16
- Release rhythm 8
- Longevity 100
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: n/a
- age_days: 3754
- days_rel: n/a
- days_push: 506
- n_releases_24m: 0
Adoption not part of the score
1452 stars · 116 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Go library providing wrapper types for primitive types that enforce atomic access, offering a safer and more convenient API than the standard library's sync/atomic package. It preserves all sync/atomic functionality while making it harder to accidentally access variables non-atomically.
Use cases
- safely share counters across goroutines
- enforce atomic access to primitive variables in Go
- replace error-prone sync/atomic usage with type-safe wrappers
- implement lock-free counters and flags
- avoid data races on shared numeric state
When to choose
- you need atomic operations on primitives in Go and want compile-time safety
- your team struggles with remembering which variables require atomic access
- you want convenient methods like Store, Add, and CompareAndSwap on typed values
When to avoid
- you only need simple mutex-protected state and prefer standard library only
- you need atomic operations on complex structs rather than primitives
- you are not writing Go
Facets
library · maturity stable
concurrency developer-tools developer-tools go cross-platform atomic-operations sync type-safety go-library algorithms
2 sources
- readme: https://github.com/uber-go/atomic · fetched 2026-08-28 · 5f725381247b
- homepage: https://go.uber.org/atomic · fetched 2026-08-29 · 4aad7164c395
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| uber-go/atomic | main | 30 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem