gmap

package
v0.0.0-...-2bcc11b Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a, b interface{}) (bool, error)

Equal compares map / structures ...

func SyncMapLen

func SyncMapLen(m *sync.Map) int

Types

type SortedMap

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

func NewSortedMap

func NewSortedMap() *SortedMap

func (*SortedMap) Delete

func (sm *SortedMap) Delete(key string)

func (*SortedMap) GetByIndex

func (sm *SortedMap) GetByIndex(idx int) any

func (*SortedMap) GetByKey

func (sm *SortedMap) GetByKey(key string) any

func (*SortedMap) GetLatest

func (sm *SortedMap) GetLatest() any

func (*SortedMap) GetOldest

func (sm *SortedMap) GetOldest() any

func (*SortedMap) Has

func (sm *SortedMap) Has(key string) bool

func (*SortedMap) Len

func (sm *SortedMap) Len() int

func (*SortedMap) Upsert

func (sm *SortedMap) Upsert(key string, value any)

Jump to

Keyboard shortcuts

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