genlib

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 0 Imported by: 0

README

go-genlib

Helpful data structures and code using Go generics.

Features
  • pipelines: Contains helpers for writing type-safe concurrent pipelines using concurrency best-practices.s
  • sets: Implements sets via a map, as a replacement for map[T]struct{}.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max[T Number](x, y T) T

func Min

func Min[T Number](x, y T) T

Types

type Number

type Number interface {
	int | int8 | int16 | int32 | int64 | float32 | float64 | byte
}

Directories

Path Synopsis
Package pipelines provides helper functions for constructing concurrent processing pipelines.
Package pipelines provides helper functions for constructing concurrent processing pipelines.
Package sets contains functions related to a generic Set implementation.
Package sets contains functions related to a generic Set implementation.
Package tsync contains type-safe wrappers around functionality from the sync package in the standard library.
Package tsync contains type-safe wrappers around functionality from the sync package in the standard library.

Jump to

Keyboard shortcuts

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