Documentation ¶
Index ¶
- type Map
- func (m *Map[KeyT, ValueT]) Delete(key KeyT)
- func (m *Map[keyT, valueT]) ExistKey(k keyT) bool
- func (m *Map[keyT, valueT]) Keys() []keyT
- func (m *Map[KeyT, ValueT]) Len() int
- func (m *Map[KeyT, ValueT]) Load(key KeyT) (ValueT, bool)
- func (m *Map[KeyT, ValueT]) LoadAndDelete(key KeyT) (ValueT, bool)
- func (m *Map[KeyT, ValueT]) LoadOrStore(key KeyT, value ValueT) (ValueT, bool)
- func (m *Map[keyT, valueT]) Marshal() []byte
- func (m *Map[keyT, valueT]) MarshalIndent(prefix, indent string) []byte
- func (m *Map[keyT, valueT]) Range(f func(key keyT, value valueT) bool)
- func (m *Map[KeyT, ValueT]) Reset()
- func (m *Map[KeyT, ValueT]) Store(key KeyT, value ValueT)
- func (m *Map[keyT, valueT]) UnMarshal(b []byte) error
- type MapAny
- func (m MapAny) Bool(key string, defaultValue ...bool) bool
- func (m MapAny) Float32(key string, defaultValue ...float32) float32
- func (m MapAny) Float64(key string, defaultValue ...float64) float64
- func (m MapAny) Has(key string) bool
- func (m MapAny) HasValue(val string) bool
- func (m MapAny) Int(key string, defaultValue ...int) int
- func (m MapAny) Int64(key string, defaultValue ...int64) int64
- func (m MapAny) Interface(key string) interface{}
- func (m MapAny) IsEmpty() bool
- func (m MapAny) Keys() []string
- func (m MapAny) Load(data map[string]string)
- func (m MapAny) MapAny(key string) (MapAny, bool)
- func (m MapAny) MapStringInterface(key string) map[string]interface{}
- func (m MapAny) Set(key string, val any)
- func (m MapAny) SliceInterface(key string) ([]interface{}, bool)
- func (m MapAny) String(key string, defaultValue ...string) string
- type OrderMap
- func (m *OrderMap[KeyT, ValueT]) Delete(key KeyT)
- func (m *OrderMap[keyT, valueT]) ExistKey(k keyT) bool
- func (m *OrderMap[keyT, valueT]) Keys() []keyT
- func (m *OrderMap[KeyT, ValueT]) Len() int
- func (m *OrderMap[KeyT, ValueT]) Load(key KeyT) (ValueT, bool)
- func (m *OrderMap[KeyT, ValueT]) LoadAndDelete(key KeyT) (ValueT, bool)
- func (m *OrderMap[KeyT, ValueT]) LoadOrStore(key KeyT, value ValueT) (ValueT, bool)
- func (m *OrderMap[keyT, valueT]) Range(f func(key keyT, value valueT) bool)
- func (m *OrderMap[KeyT, ValueT]) Reset()
- func (m *OrderMap[KeyT, ValueT]) Store(key KeyT, value ValueT)
- type OrderMapSeq
- func (m *OrderMapSeq[KeyT, ValueT]) Delete(key KeyT)
- func (m *OrderMapSeq[keyT, valueT]) ExistKey(k keyT) bool
- func (m *OrderMapSeq[keyT, valueT]) Keys() []string
- func (m *OrderMapSeq[KeyT, ValueT]) Len() int
- func (m *OrderMapSeq[KeyT, ValueT]) Load(key KeyT) (ValueT, bool)
- func (m *OrderMapSeq[KeyT, ValueT]) LoadAndDelete(key KeyT) (ValueT, bool)
- func (m *OrderMapSeq[KeyT, ValueT]) LoadOrStore(key KeyT, value ValueT) (ValueT, bool)
- func (m *OrderMapSeq[keyT, valueT]) Range(f func(key string, value valueT) bool)
- func (m *OrderMapSeq[KeyT, ValueT]) Store(key KeyT, value ValueT)
- type SyncMap
- func (m *SyncMap[KeyT, ValueT]) Delete(key KeyT)
- func (m *SyncMap[keyT, valueT]) ExistKey(k keyT) bool
- func (m *SyncMap[keyT, valueT]) Keys() []keyT
- func (m *SyncMap[KeyT, ValueT]) Load(key KeyT) (ValueT, bool)
- func (m *SyncMap[KeyT, ValueT]) LoadAndDelete(key KeyT) (ValueT, bool)
- func (m *SyncMap[KeyT, ValueT]) LoadOrStore(key KeyT, value ValueT) (ValueT, bool)
- func (m *SyncMap[keyT, valueT]) Range(f func(key keyT, value valueT) bool)
- func (m *SyncMap[KeyT, ValueT]) Reset()
- func (m *SyncMap[KeyT, ValueT]) Store(key KeyT, value ValueT)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
func (*Map[KeyT, ValueT]) LoadAndDelete ¶
func (*Map[KeyT, ValueT]) LoadOrStore ¶
func (*Map[keyT, valueT]) MarshalIndent ¶
type MapAny ¶
type MapAny map[string]interface{}
func (MapAny) MapStringInterface ¶
func (MapAny) SliceInterface ¶
type OrderMap ¶
type OrderMap[K comparable, V any] struct { *maputil.OrderedMap[K, V] // contains filtered or unexported fields }
func NewOrderMap ¶
func NewOrderMap[K comparable, V any]() *OrderMap[K, V]
func (*OrderMap[KeyT, ValueT]) LoadAndDelete ¶
func (*OrderMap[KeyT, ValueT]) LoadOrStore ¶
type OrderMapSeq ¶
type OrderMapSeq[K comparable, V any] struct { *orderedmap.OrderedMap // contains filtered or unexported fields }
func NewOrderMapSeq ¶
func NewOrderMapSeq[K comparable, V any]() *OrderMapSeq[K, V]
func (*OrderMapSeq[KeyT, ValueT]) Delete ¶
func (m *OrderMapSeq[KeyT, ValueT]) Delete(key KeyT)
func (*OrderMapSeq[keyT, valueT]) ExistKey ¶
func (m *OrderMapSeq[keyT, valueT]) ExistKey(k keyT) bool
func (*OrderMapSeq[keyT, valueT]) Keys ¶
func (m *OrderMapSeq[keyT, valueT]) Keys() []string
func (*OrderMapSeq[KeyT, ValueT]) Len ¶
func (m *OrderMapSeq[KeyT, ValueT]) Len() int
func (*OrderMapSeq[KeyT, ValueT]) Load ¶
func (m *OrderMapSeq[KeyT, ValueT]) Load(key KeyT) (ValueT, bool)
func (*OrderMapSeq[KeyT, ValueT]) LoadAndDelete ¶
func (m *OrderMapSeq[KeyT, ValueT]) LoadAndDelete(key KeyT) (ValueT, bool)
func (*OrderMapSeq[KeyT, ValueT]) LoadOrStore ¶
func (m *OrderMapSeq[KeyT, ValueT]) LoadOrStore(key KeyT, value ValueT) (ValueT, bool)
func (*OrderMapSeq[keyT, valueT]) Range ¶
func (m *OrderMapSeq[keyT, valueT]) Range(f func(key string, value valueT) bool)
func (*OrderMapSeq[KeyT, ValueT]) Store ¶
func (m *OrderMapSeq[KeyT, ValueT]) Store(key KeyT, value ValueT)
type SyncMap ¶
func NewSyncMap ¶
func (*SyncMap[KeyT, ValueT]) LoadAndDelete ¶
func (*SyncMap[KeyT, ValueT]) LoadOrStore ¶
Click to show internal directories.
Click to hide internal directories.