# emirpasic/gods

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

Repository: https://github.com/emirpasic/gods
Canonical: https://ross.abutalabs.com/products/gods
Language: Go
License: NOASSERTION
License Family: other
Topics: go, golang, data-structure, map, tree, set, list, stack, iterator, enumerable, sort, avl-tree, red-black-tree, b-tree, binary-heap, queue
Last push: 2025-03-12T00:01:29+00:00

## Health v2 (maintenance only)
Score: 27/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 10, release rhythm 8, longevity 100
- inputs: {"age_days": 4200, "days_push": 540, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 17457, forks 1824 (observed 2026-08-28T04:11:19.854165+00:00)

## What it is
GoDS is a Go library implementing a wide range of data structures including lists, sets, stacks, maps, trees, and queues, with iterators, comparators, sorting, and JSON serialization support. It is a pure-Go, dependency-free collection library.

## Use cases
- implement data structures in go
- need a red-black tree or avl tree in golang
- sorted map or set for go
- priority queue implementation in go
- bidirectional map in golang
- stack and queue containers for go

## When to choose
- you need common data structures (trees, sets, maps, heaps) in pure Go with no dependencies
- you want consistent container interfaces with iterators and sorting

## When to avoid
- you need concurrent/thread-safe data structures
- you only need basic slices and maps already provided by Go's standard library

## Facets
- artifact type: library
- maturity: stable
- function: data-science
- domain: -
- platform: go
- tags: data-structures, containers, trees, sets, maps, queues, stacks, iterators, algorithms

## Member repositories
- emirpasic/gods (main) score 27

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:19.854165+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:02:56.670867+00:00, confidence not recorded.
  - readme: https://github.com/emirpasic/gods (fetched 2026-08-28T04:11:19.854165+00:00, sha 2b80b1769c4d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
