sandata

module
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT

README

sandata

A collection of generic data structures for Go.

Install

go get github.com/andrei-cosmin/sandata

Packages

Package Description
array Auto-growing array with bitmask clearing
bit Read-only bitmask wrapper with set operations
chain Double linked list nodes
flag Simple boolean flag
pool Fixed-capacity stack pool
set Generic set with union, difference, intersection
trie Prefix trie with iterator support
mathutil Math utilities (next power of two)

Usage

import "github.com/andrei-cosmin/sandata/set"

s := set.New[string](10)
s.Insert("foo")
s.Insert("bar")
s.Has("foo") // true

License

MIT

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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