generic

module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: Apache-2.0, BSD-3-Clause

README

Generic Go experiments

This module holds a bunch of experiments in generic Go containers and the like. None of the APIs should be taken to be stable.

Directories

Path Synopsis
Package anyhash implements support for storing a map storing arbitrary hashable values that aren't necessarily comparable.
Package anyhash implements support for storing a map storing arbitrary hashable values that aren't necessarily comparable.
Package anyunique provides canonicalization of values under a caller-defined equivalence relation.
Package anyunique provides canonicalization of values under a caller-defined equivalence relation.
Package batch provides support for batching up singular calls into multiple-value calls which may be more efficient.
Package batch provides support for batching up singular calls into multiple-value calls which may be more efficient.
Package genericio provides a generic implementation of the io package that works on streams of any type.
Package genericio provides a generic implementation of the io package that works on streams of any type.
Package heap provides heap operations on a slice of values.
Package heap provides heap operations on a slice of values.
Package mermaid provides functionality for marshaling graph structures to Mermaid diagram format.
Package mermaid provides functionality for marshaling graph structures to Mermaid diagram format.
Package tuple a collection of generic struct types that hold a specific number of values.
Package tuple a collection of generic struct types that hold a specific number of values.
tuplefunc
Package tuplefunc provides functions that convert between multiple-argument and multiple-return functions and single-argument, single-return functions.
Package tuplefunc provides functions that convert between multiple-argument and multiple-return functions and single-argument, single-return functions.
twitter-2014
coalesce command
iter command
An example package using Go-as-if-it-had-parametric-polymorphism, with an "iter" package in the standard library, following an already idiomatic Go iteration pattern.
An example package using Go-as-if-it-had-parametric-polymorphism, with an "iter" package in the standard library, following an already idiomatic Go iteration pattern.
set
The set package provides a generic set interface and some implementations of it.
The set package provides a generic set interface and some implementations of it.

Jump to

Keyboard shortcuts

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