structure

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: GPL-3.0 Imports: 1 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes added in v0.0.27

type Bytes = []byte

type CountMap added in v0.0.26

type CountMap[K comparable] interface {
	Set(K, int64)
	Add(K, int64)
	Subtract(K, int64)
	Get(K) int64
	GetAll() map[K]int64
	Contain(K) bool
	Remove(K)
	Clear()
}

func NewCountMap added in v0.0.26

func NewCountMap[K comparable]() CountMap[K]

type MultiMap added in v0.0.24

type MultiMap[K comparable, V any] interface {
	Add(K, ...V)
	Get(K) []V
	Size(K) int
	GetAll() map[K][]V
	Contain(K) bool
	Remove(K)
	Clear()
}

func NewMultiMap added in v0.0.24

func NewMultiMap[K comparable, V any]() MultiMap[K, V]

type Set

type Set[T comparable] interface {
	Add(...T)
	Contain(...T) bool
	Remove(...T)
	Clear()
	Get() []T
}

func NewSet

func NewSet[T comparable]() Set[T]

func NewSetFrom added in v0.0.29

func NewSetFrom[T comparable](vals []T) Set[T]

type Void added in v0.0.29

type Void = interface{}

denoting no value for generic

Jump to

Keyboard shortcuts

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