mapcache

package
v0.0.0-...-52de14c Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map[T any] struct {
	// contains filtered or unexported fields
}

func (*Map[T]) Delete

func (m *Map[T]) Delete(id int)

func (*Map[T]) Get

func (m *Map[T]) Get(id int) T

func (*Map[T]) Range

func (m *Map[T]) Range(f func(id int, t T) bool)

func (*Map[T]) Set

func (m *Map[T]) Set(id int, t T)

Jump to

Keyboard shortcuts

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