randmap

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RandMap

type RandMap struct {
	// contains filtered or unexported fields
}

func NewRandMap

func NewRandMap() *RandMap

func (*RandMap) Count added in v0.2.3

func (s *RandMap) Count() int

func (*RandMap) Get

func (s *RandMap) Get(key any) interface{}

func (*RandMap) Loop added in v0.2.6

func (s *RandMap) Loop(callback func(key, value interface{}) bool)

func (*RandMap) PopRandom

func (s *RandMap) PopRandom() interface{}

func (*RandMap) Random

func (s *RandMap) Random() interface{}

func (*RandMap) Remove

func (s *RandMap) Remove(key any)

func (*RandMap) Set

func (s *RandMap) Set(key any, item interface{})

Jump to

Keyboard shortcuts

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