containers

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: ISC Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDTable

type IDTable[T any] map[uint64]T

IDTable is a map with random indexes for jobs and other cases where a random but unique index is required

func (IDTable[T]) Assign

func (id IDTable[T]) Assign(val T) uint64

Assign adds an object to the map and returns its assigned index

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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