Documentation ¶ Index ¶ type RandMap func NewRandMap() *RandMap func (s *RandMap) Count() int func (s *RandMap) Get(key any) interface{} func (s *RandMap) PopRandom() interface{} func (s *RandMap) Random() interface{} func (s *RandMap) Remove(key any) func (s *RandMap) Set(key any, item interface{}) 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) 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{}) Source Files ¶ View all Source files rand_map.go Click to show internal directories. Click to hide internal directories.