Go (Golang) data structure and algorithm libraries
Generic collections, trees, queues and algorithms for Go, ranked by GitHub stars
Updated · GitHub stars (stars)
Why these 20
Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.
-
1
gods
Go Data Structures. Containers, Sets, Lists, Stacks, Maps, BidiMaps, Trees, HashSet etc.
17,453 stars 1,816 forkslast push 2025-03-12GoNOASSERTION
-
2
-
3
-
4
go-datastructures
Collection of useful, performant, and thread-safe data structures.
7,971 stars 851 forkslast push 2026-10-01GoApache-2.0
-
5
golang-set
Thread-Safe and Non-Thread-Safe high-performance sets for Go.
4,781 stars 295 forkslast push 2026-10-02GoNOASSERTION
-
6
roaring
Go package implementing compressed bitsets.
2,953 stars 264 forkslast push 2026-11-12GoApache-2.0
-
7
bits-and-blooms/bloom
Go package implementing Bloom filters.
2,836 stars 261 forkslast push 2026-11-19GoBSD-2-Clause
-
8
xsync
Concurrent scalable data structures like, a concurrent generic hash table.
1,737 stars 76 forkslast push 2026-09-27GoApache-2.0
-
9
boomfilters
Probabilistic data structures for processing continuous, unbounded streams.
1,645 stars 119 forkslast push 2025-11-17GoApache-2.0
-
10
-
11
cuckoofilter
Cuckoo filter: a good alternative to a counting bloom filter implemented in Go.
1,233 stars 120 forkslast push 2024-07-15GoMIT
-
12
gostl
Data structure and algorithm library for go, designed to provide functions similar to C++ STL.
1,143 stars 116 forkslast push 2025-08-28GoMIT
-
13
hyperloglog
HyperLogLog implementation with Sparse, LogLog-Beta bias correction and TailCut space reduction.
1,059 stars 87 forkslast push 2026-10-24GoMIT
-
14
-
15
-
16
gammazero/deque
Fast ring-buffer deque (double-ended queue).
791 stars 72 forkslast push 2026-11-14GoMIT
-
17
go-edlib
Go string comparison and edit distance algorithms library (Levenshtein, LCS, Hamming, Damerau levenshtein, Jaro-Winkler, etc.) compatible with Unicode.
605 stars 31 forkslast push 2026-02-05GoMIT
-
18
agnivade/levenshtein
Implementation to calculate levenshtein distance in Go.
482 stars 36 forkslast push 2026-10-17GoMIT
-
19
-
20
References
- avelino/awesome-go: Data Structures and Algorithms, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-20 21:54 UTC.
- avelino/awesome-go (Data Structures and Algorithms), GitHub community list, 90 tools with a public repository.