mockmap

package
v0.0.0-...-8aeec60 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 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 Item

type Item[K comparable, T any] struct {
	Name  K
	Value T
	Order float64
}

type Map

type Map[K comparable, T any] []Item[K, T]

func (*Map[K, T]) Del

func (q *Map[K, T]) Del(name K)

func (*Map[K, T]) DelByIndex

func (q *Map[K, T]) DelByIndex(i int)

func (*Map[K, T]) Get

func (q *Map[K, T]) Get(name K) Item[K, T]

func (*Map[K, T]) Set

func (q *Map[K, T]) Set(name K, value T, orders ...float64)

Jump to

Keyboard shortcuts

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