Quick Start
Install the module and write your first type-safe container in minutes.
OrderedMap
A map that preserves insertion order, with optional LRU recency mode.
Queue & WaitableQueue
Classic and concurrency-safe queues with flow-control watermarks.
Set
Idiomatic Go sets with union, intersection, and difference operations.
Stack
LIFO stack with multiple backing implementations.
Choosing an Implementation
Pick the right backing store for your performance requirements.
Get started in three steps
Explore the reference
Browse the Data Structures section to learn every method and option available.
All implementations except
WaitableQueue are not concurrency-safe. If you need a queue safe for use across goroutines, see WaitableQueue.