Go Data structures

Open-source Go projects categorized as Data structures

Top 23 Go Data structure Projects

Data structures
  1. gods

    GoDS (Go Data Structures) - Sets, Lists, Stacks, Maps, Trees, Queues, and much more

  2. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  3. Go

    Algorithms and Data Structures implemented in Go for beginners, following best practices. (by TheAlgorithms)

    Project mention: Go Algorithms and Data Structures: Best Practices for Beginners | news.ycombinator.com | 2024-08-13

    Please, beginners, do not take "Best practices" too seriously. For example:

    https://github.com/TheAlgorithms/Go/blob/master/strings/pali...

    Can you tell how many extra memory allocations we are making to solve this problem? And how many are really needed? We could solve this with a for loop by directly comparing the characters and skipping non-alphabetical ones. This would be simpler to read and more efficient.

    We should be careful with what we call "best practices for beginners", as they can sometimes lead to unnecessary complexity and inefficiency.

  4. go-datastructures

    A collection of useful, performant, and threadsafe Go datastructures.

  5. dasel

    Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.

    Project mention: TomWright/dasel: Select, put and delete data from JSON, TOML, YAML, XML and CSV | news.ycombinator.com | 2024-08-18

    No HCL support [0] though.

    [0]: https://github.com/TomWright/dasel/issues/98

  6. codeforces-go

    算法竞赛模板库 by 灵茶山艾府 💭💡🎈

  7. rosedb

    Lightweight, fast and reliable key/value storage engine based on Bitcask.

  8. golang-set

    A simple, battle-tested and generic set type for the Go language. Trusted by Docker, 1Password, Ethereum and Hashicorp.

  9. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  10. nutsdb

    A simple, fast, embeddable, persistent key/value store written in pure Go. It supports fully serializable transactions and many data structures such as list, set, sorted set.

  11. gota

    Gota: DataFrames and data wrangling in Go (Golang)

  12. fsm

    Finite State Machine for Go

  13. Data-Structures-and-Algorithms

    Data Structures and Algorithms implementation in Go (by ua-nick)

  14. roaring

    Roaring bitmaps in Go (golang), used by InfluxDB, Bleve, DataDog

  15. gocache

    ☔️ A complete Go cache library that brings you multiple ways of managing your caches

  16. willf/bloom

    Go package implementing Bloom filters, used by Milvus and Beego.

  17. Atomix

    A Kubernetes toolkit for building distributed applications using cloud native principles

  18. ytt

    YAML templating tool that works on YAML structure instead of text

  19. boomfilters

    Probabilistic data structures for processing continuous, unbounded streams.

  20. bitset

    Go package implementing bitsets

  21. generic

    A collection of generic data structures written in Go.

    Project mention: Go Is a Well-Designed Language | news.ycombinator.com | 2025-01-08

    Not sure how I didn't find this before, but https://github.com/zyedidia/generic looks like a decent library.

    Although there are some decent libraries out there for this kind of thing, my complaint mostly stems from the fact that a lot of existing code doesn't involve generics yet.

    I think I remember skimming an article about for range loops on Hacker News a while back, but again, my main complaint is still that existing code exists in a way that doesn't incorporate all these new features yet.

  22. cuckoofilter

    Cuckoo Filter: Practically Better Than Bloom

  23. gostl

    Data structure and algorithm library for go, designed to provide functions similar to C++ STL

  24. hyperloglog

    HyperLogLog with lots of sugar (Sparse, LogLog-Beta bias correction and TailCut space reduction) brought to you by Axiom

    Project mention: The Tech Stack of a Cloud Computing Startup | dev.to | 2025-03-28

    To keep tabs on what’s happening, we use Axiom for logs and Grafana for dashboards and alerts. We pipe all of our logs from most services straight into Axiom and have some pre-defined filters there that help us understand whats going on. With Grafana we have a bunch of custom dashboards that help us triage issues, and more importantly, alert us if some metrics are looking off. Without Grafana, Sliplane could not exist!

  25. orderedmap

    🔃 An ordered map in Go with amortized O(1) for Set, Get, Delete and Len.

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go Data structures discussion

Log in or Post with

Go Data structures related posts

  • Learning Go Concurrency Through a Thread-Safe Map Implementation

    1 project | dev.to | 1 Apr 2025
  • Show HN: Multi-/BiKeyMap (Go Module)

    1 project | news.ycombinator.com | 3 Feb 2025
  • HyperLogLog – an algorithm for approximating the number of distinct elements

    1 project | news.ycombinator.com | 22 Aug 2024
  • Go Algorithms and Data Structures: Best Practices for Beginners

    2 projects | news.ycombinator.com | 13 Aug 2024
  • How our infrastructure supports last-minute studying

    5 projects | dev.to | 4 Jul 2024
  • Consistent Hashing: An Overview and Implementation in Golang

    3 projects | dev.to | 7 May 2024
  • How single message broke all our monitoring and dashboards

    1 project | dev.to | 2 May 2024
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 28 Apr 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Index

What are some of the best open-source Data structure projects in Go? This list will help you:

# Project Stars
1 gods 16,859
2 Go 16,784
3 go-datastructures 7,788
4 dasel 7,420
5 codeforces-go 6,490
6 rosedb 4,778
7 golang-set 4,481
8 nutsdb 3,451
9 gota 3,119
10 fsm 3,010
11 Data-Structures-and-Algorithms 2,775
12 roaring 2,647
13 gocache 2,632
14 willf/bloom 2,558
15 Atomix 2,363
16 ytt 1,742
17 boomfilters 1,604
18 bitset 1,406
19 generic 1,302
20 cuckoofilter 1,167
21 gostl 1,084
22 hyperloglog 972
23 orderedmap 945

Sponsored
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com

Did you know that Go is
the 4th most popular programming language
based on number of references?