container

module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2025 License: GPL-3.0

README

container: the missing piece of the Go standard library

container implements efficient slice-backed data structures that would probably have been included in Go's standard library if generics had been available from the start. Package deque implements a double-ended queue inspired by Rust's wonderful VecDeque type. Package heap is a reimagining of the standard library container/heap with a generics-first implementation.

Directories

Path Synopsis
Package deque implements a double-ended queue (deque) implemented with a slice-backed ring buffer.
Package deque implements a double-ended queue (deque) implemented with a slice-backed ring buffer.
Package heap implements a priority queue as a min heap backed by a slice.
Package heap implements a priority queue as a min heap backed by a slice.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL