Versions in this module Expand all Collapse all v2 v2.0.1 Apr 3, 2023 v2.0.0 Apr 3, 2023 Changes in this version + type AnyAnyMap struct + func NewAnyAnyMap(safe ...bool) *AnyAnyMap + func NewAnyAnyMapFrom(data map[interface{}]interface{}, safe ...bool) *AnyAnyMap + func (m *AnyAnyMap) Clear() + func (m *AnyAnyMap) Clone(safe ...bool) *AnyAnyMap + func (m *AnyAnyMap) Contains(key interface{}) bool + func (m *AnyAnyMap) DeepCopy() interface{} + func (m *AnyAnyMap) FilterEmpty() + func (m *AnyAnyMap) FilterNil() + func (m *AnyAnyMap) Flip() + func (m *AnyAnyMap) Get(key interface{}) (value interface{}) + func (m *AnyAnyMap) GetOrSet(key interface{}, value interface{}) interface{} + func (m *AnyAnyMap) GetOrSetFunc(key interface{}, f func() interface{}) interface{} + func (m *AnyAnyMap) GetOrSetFuncLock(key interface{}, f func() interface{}) interface{} + func (m *AnyAnyMap) GetVar(key interface{}) *gvar.Var + func (m *AnyAnyMap) GetVarOrSet(key interface{}, value interface{}) *gvar.Var + func (m *AnyAnyMap) GetVarOrSetFunc(key interface{}, f func() interface{}) *gvar.Var + func (m *AnyAnyMap) GetVarOrSetFuncLock(key interface{}, f func() interface{}) *gvar.Var + func (m *AnyAnyMap) IsEmpty() bool + func (m *AnyAnyMap) IsSubOf(other *AnyAnyMap) bool + func (m *AnyAnyMap) Iterator(f func(k interface{}, v interface{}) bool) + func (m *AnyAnyMap) Keys() []interface{} + func (m *AnyAnyMap) LockFunc(f func(m map[interface{}]interface{})) + func (m *AnyAnyMap) Map() map[interface{}]interface{} + func (m *AnyAnyMap) MapCopy() map[interface{}]interface{} + func (m *AnyAnyMap) MapStrAny() map[string]interface{} + func (m *AnyAnyMap) Merge(other *AnyAnyMap) + func (m *AnyAnyMap) Pop() (key, value interface{}) + func (m *AnyAnyMap) Pops(size int) map[interface{}]interface{} + func (m *AnyAnyMap) RLockFunc(f func(m map[interface{}]interface{})) + func (m *AnyAnyMap) Remove(key interface{}) (value interface{}) + func (m *AnyAnyMap) Removes(keys []interface{}) + func (m *AnyAnyMap) Replace(data map[interface{}]interface{}) + func (m *AnyAnyMap) Search(key interface{}) (value interface{}, found bool) + func (m *AnyAnyMap) Set(key interface{}, value interface{}) + func (m *AnyAnyMap) SetIfNotExist(key interface{}, value interface{}) bool + func (m *AnyAnyMap) SetIfNotExistFunc(key interface{}, f func() interface{}) bool + func (m *AnyAnyMap) SetIfNotExistFuncLock(key interface{}, f func() interface{}) bool + func (m *AnyAnyMap) Sets(data map[interface{}]interface{}) + func (m *AnyAnyMap) Size() int + func (m *AnyAnyMap) String() string + func (m *AnyAnyMap) UnmarshalJSON(b []byte) error + func (m *AnyAnyMap) UnmarshalValue(value interface{}) (err error) + func (m *AnyAnyMap) Values() []interface{} + func (m AnyAnyMap) MarshalJSON() ([]byte, error) + type HashMap = AnyAnyMap + type IntAnyMap struct + func NewIntAnyMap(safe ...bool) *IntAnyMap + func NewIntAnyMapFrom(data map[int]interface{}, safe ...bool) *IntAnyMap + func (m *IntAnyMap) Clear() + func (m *IntAnyMap) Clone() *IntAnyMap + func (m *IntAnyMap) Contains(key int) bool + func (m *IntAnyMap) DeepCopy() interface{} + func (m *IntAnyMap) FilterEmpty() + func (m *IntAnyMap) FilterNil() + func (m *IntAnyMap) Flip() + func (m *IntAnyMap) Get(key int) (value interface{}) + func (m *IntAnyMap) GetOrSet(key int, value interface{}) interface{} + func (m *IntAnyMap) GetOrSetFunc(key int, f func() interface{}) interface{} + func (m *IntAnyMap) GetOrSetFuncLock(key int, f func() interface{}) interface{} + func (m *IntAnyMap) GetVar(key int) *gvar.Var + func (m *IntAnyMap) GetVarOrSet(key int, value interface{}) *gvar.Var + func (m *IntAnyMap) GetVarOrSetFunc(key int, f func() interface{}) *gvar.Var + func (m *IntAnyMap) GetVarOrSetFuncLock(key int, f func() interface{}) *gvar.Var + func (m *IntAnyMap) IsEmpty() bool + func (m *IntAnyMap) IsSubOf(other *IntAnyMap) bool + func (m *IntAnyMap) Iterator(f func(k int, v interface{}) bool) + func (m *IntAnyMap) Keys() []int + func (m *IntAnyMap) LockFunc(f func(m map[int]interface{})) + func (m *IntAnyMap) Map() map[int]interface{} + func (m *IntAnyMap) MapCopy() map[int]interface{} + func (m *IntAnyMap) MapStrAny() map[string]interface{} + func (m *IntAnyMap) Merge(other *IntAnyMap) + func (m *IntAnyMap) Pop() (key int, value interface{}) + func (m *IntAnyMap) Pops(size int) map[int]interface{} + func (m *IntAnyMap) RLockFunc(f func(m map[int]interface{})) + func (m *IntAnyMap) Remove(key int) (value interface{}) + func (m *IntAnyMap) Removes(keys []int) + func (m *IntAnyMap) Replace(data map[int]interface{}) + func (m *IntAnyMap) Search(key int) (value interface{}, found bool) + func (m *IntAnyMap) Set(key int, val interface{}) + func (m *IntAnyMap) SetIfNotExist(key int, value interface{}) bool + func (m *IntAnyMap) SetIfNotExistFunc(key int, f func() interface{}) bool + func (m *IntAnyMap) SetIfNotExistFuncLock(key int, f func() interface{}) bool + func (m *IntAnyMap) Sets(data map[int]interface{}) + func (m *IntAnyMap) Size() int + func (m *IntAnyMap) String() string + func (m *IntAnyMap) UnmarshalJSON(b []byte) error + func (m *IntAnyMap) UnmarshalValue(value interface{}) (err error) + func (m *IntAnyMap) Values() []interface{} + func (m IntAnyMap) MarshalJSON() ([]byte, error) + type IntIntMap struct + func NewIntIntMap(safe ...bool) *IntIntMap + func NewIntIntMapFrom(data map[int]int, safe ...bool) *IntIntMap + func (m *IntIntMap) Clear() + func (m *IntIntMap) Clone() *IntIntMap + func (m *IntIntMap) Contains(key int) bool + func (m *IntIntMap) DeepCopy() interface{} + func (m *IntIntMap) FilterEmpty() + func (m *IntIntMap) Flip() + func (m *IntIntMap) Get(key int) (value int) + func (m *IntIntMap) GetOrSet(key int, value int) int + func (m *IntIntMap) GetOrSetFunc(key int, f func() int) int + func (m *IntIntMap) GetOrSetFuncLock(key int, f func() int) int + func (m *IntIntMap) IsEmpty() bool + func (m *IntIntMap) IsSubOf(other *IntIntMap) bool + func (m *IntIntMap) Iterator(f func(k int, v int) bool) + func (m *IntIntMap) Keys() []int + func (m *IntIntMap) LockFunc(f func(m map[int]int)) + func (m *IntIntMap) Map() map[int]int + func (m *IntIntMap) MapCopy() map[int]int + func (m *IntIntMap) MapStrAny() map[string]interface{} + func (m *IntIntMap) Merge(other *IntIntMap) + func (m *IntIntMap) Pop() (key, value int) + func (m *IntIntMap) Pops(size int) map[int]int + func (m *IntIntMap) RLockFunc(f func(m map[int]int)) + func (m *IntIntMap) Remove(key int) (value int) + func (m *IntIntMap) Removes(keys []int) + func (m *IntIntMap) Replace(data map[int]int) + func (m *IntIntMap) Search(key int) (value int, found bool) + func (m *IntIntMap) Set(key int, val int) + func (m *IntIntMap) SetIfNotExist(key int, value int) bool + func (m *IntIntMap) SetIfNotExistFunc(key int, f func() int) bool + func (m *IntIntMap) SetIfNotExistFuncLock(key int, f func() int) bool + func (m *IntIntMap) Sets(data map[int]int) + func (m *IntIntMap) Size() int + func (m *IntIntMap) String() string + func (m *IntIntMap) UnmarshalJSON(b []byte) error + func (m *IntIntMap) UnmarshalValue(value interface{}) (err error) + func (m *IntIntMap) Values() []int + func (m IntIntMap) MarshalJSON() ([]byte, error) + type IntStrMap struct + func NewIntStrMap(safe ...bool) *IntStrMap + func NewIntStrMapFrom(data map[int]string, safe ...bool) *IntStrMap + func (m *IntStrMap) Clear() + func (m *IntStrMap) Clone() *IntStrMap + func (m *IntStrMap) Contains(key int) bool + func (m *IntStrMap) DeepCopy() interface{} + func (m *IntStrMap) FilterEmpty() + func (m *IntStrMap) Flip() + func (m *IntStrMap) Get(key int) (value string) + func (m *IntStrMap) GetOrSet(key int, value string) string + func (m *IntStrMap) GetOrSetFunc(key int, f func() string) string + func (m *IntStrMap) GetOrSetFuncLock(key int, f func() string) string + func (m *IntStrMap) IsEmpty() bool + func (m *IntStrMap) IsSubOf(other *IntStrMap) bool + func (m *IntStrMap) Iterator(f func(k int, v string) bool) + func (m *IntStrMap) Keys() []int + func (m *IntStrMap) LockFunc(f func(m map[int]string)) + func (m *IntStrMap) Map() map[int]string + func (m *IntStrMap) MapCopy() map[int]string + func (m *IntStrMap) MapStrAny() map[string]interface{} + func (m *IntStrMap) Merge(other *IntStrMap) + func (m *IntStrMap) Pop() (key int, value string) + func (m *IntStrMap) Pops(size int) map[int]string + func (m *IntStrMap) RLockFunc(f func(m map[int]string)) + func (m *IntStrMap) Remove(key int) (value string) + func (m *IntStrMap) Removes(keys []int) + func (m *IntStrMap) Replace(data map[int]string) + func (m *IntStrMap) Search(key int) (value string, found bool) + func (m *IntStrMap) Set(key int, val string) + func (m *IntStrMap) SetIfNotExist(key int, value string) bool + func (m *IntStrMap) SetIfNotExistFunc(key int, f func() string) bool + func (m *IntStrMap) SetIfNotExistFuncLock(key int, f func() string) bool + func (m *IntStrMap) Sets(data map[int]string) + func (m *IntStrMap) Size() int + func (m *IntStrMap) String() string + func (m *IntStrMap) UnmarshalJSON(b []byte) error + func (m *IntStrMap) UnmarshalValue(value interface{}) (err error) + func (m *IntStrMap) Values() []string + func (m IntStrMap) MarshalJSON() ([]byte, error) + type ListMap struct + func NewListMap(safe ...bool) *ListMap + func NewListMapFrom(data map[interface{}]interface{}, safe ...bool) *ListMap + func (m *ListMap) Clear() + func (m *ListMap) Clone(safe ...bool) *ListMap + func (m *ListMap) Contains(key interface{}) (ok bool) + func (m *ListMap) DeepCopy() interface{} + func (m *ListMap) FilterEmpty() + func (m *ListMap) Flip() + func (m *ListMap) Get(key interface{}) (value interface{}) + func (m *ListMap) GetOrSet(key interface{}, value interface{}) interface{} + func (m *ListMap) GetOrSetFunc(key interface{}, f func() interface{}) interface{} + func (m *ListMap) GetOrSetFuncLock(key interface{}, f func() interface{}) interface{} + func (m *ListMap) GetVar(key interface{}) *gvar.Var + func (m *ListMap) GetVarOrSet(key interface{}, value interface{}) *gvar.Var + func (m *ListMap) GetVarOrSetFunc(key interface{}, f func() interface{}) *gvar.Var + func (m *ListMap) GetVarOrSetFuncLock(key interface{}, f func() interface{}) *gvar.Var + func (m *ListMap) IsEmpty() bool + func (m *ListMap) Iterator(f func(key, value interface{}) bool) + func (m *ListMap) IteratorAsc(f func(key interface{}, value interface{}) bool) + func (m *ListMap) IteratorDesc(f func(key interface{}, value interface{}) bool) + func (m *ListMap) Keys() []interface{} + func (m *ListMap) Map() map[interface{}]interface{} + func (m *ListMap) MapStrAny() map[string]interface{} + func (m *ListMap) Merge(other *ListMap) + func (m *ListMap) Pop() (key, value interface{}) + func (m *ListMap) Pops(size int) map[interface{}]interface{} + func (m *ListMap) Remove(key interface{}) (value interface{}) + func (m *ListMap) Removes(keys []interface{}) + func (m *ListMap) Replace(data map[interface{}]interface{}) + func (m *ListMap) Search(key interface{}) (value interface{}, found bool) + func (m *ListMap) Set(key interface{}, value interface{}) + func (m *ListMap) SetIfNotExist(key interface{}, value interface{}) bool + func (m *ListMap) SetIfNotExistFunc(key interface{}, f func() interface{}) bool + func (m *ListMap) SetIfNotExistFuncLock(key interface{}, f func() interface{}) bool + func (m *ListMap) Sets(data map[interface{}]interface{}) + func (m *ListMap) Size() (size int) + func (m *ListMap) String() string + func (m *ListMap) UnmarshalJSON(b []byte) error + func (m *ListMap) UnmarshalValue(value interface{}) (err error) + func (m *ListMap) Values() []interface{} + func (m ListMap) MarshalJSON() (jsonBytes []byte, err error) + type Map = AnyAnyMap + func New(safe ...bool) *Map + func NewFrom(data map[interface{}]interface{}, safe ...bool) *Map + func NewHashMap(safe ...bool) *Map + func NewHashMapFrom(data map[interface{}]interface{}, safe ...bool) *Map + type StrAnyMap struct + func NewStrAnyMap(safe ...bool) *StrAnyMap + func NewStrAnyMapFrom(data map[string]interface{}, safe ...bool) *StrAnyMap + func (m *StrAnyMap) Clear() + func (m *StrAnyMap) Clone() *StrAnyMap + func (m *StrAnyMap) Contains(key string) bool + func (m *StrAnyMap) DeepCopy() interface{} + func (m *StrAnyMap) FilterEmpty() + func (m *StrAnyMap) FilterNil() + func (m *StrAnyMap) Flip() + func (m *StrAnyMap) Get(key string) (value interface{}) + func (m *StrAnyMap) GetOrSet(key string, value interface{}) interface{} + func (m *StrAnyMap) GetOrSetFunc(key string, f func() interface{}) interface{} + func (m *StrAnyMap) GetOrSetFuncLock(key string, f func() interface{}) interface{} + func (m *StrAnyMap) GetVar(key string) *gvar.Var + func (m *StrAnyMap) GetVarOrSet(key string, value interface{}) *gvar.Var + func (m *StrAnyMap) GetVarOrSetFunc(key string, f func() interface{}) *gvar.Var + func (m *StrAnyMap) GetVarOrSetFuncLock(key string, f func() interface{}) *gvar.Var + func (m *StrAnyMap) IsEmpty() bool + func (m *StrAnyMap) IsSubOf(other *StrAnyMap) bool + func (m *StrAnyMap) Iterator(f func(k string, v interface{}) bool) + func (m *StrAnyMap) Keys() []string + func (m *StrAnyMap) LockFunc(f func(m map[string]interface{})) + func (m *StrAnyMap) Map() map[string]interface{} + func (m *StrAnyMap) MapCopy() map[string]interface{} + func (m *StrAnyMap) MapStrAny() map[string]interface{} + func (m *StrAnyMap) Merge(other *StrAnyMap) + func (m *StrAnyMap) Pop() (key string, value interface{}) + func (m *StrAnyMap) Pops(size int) map[string]interface{} + func (m *StrAnyMap) RLockFunc(f func(m map[string]interface{})) + func (m *StrAnyMap) Remove(key string) (value interface{}) + func (m *StrAnyMap) Removes(keys []string) + func (m *StrAnyMap) Replace(data map[string]interface{}) + func (m *StrAnyMap) Search(key string) (value interface{}, found bool) + func (m *StrAnyMap) Set(key string, val interface{}) + func (m *StrAnyMap) SetIfNotExist(key string, value interface{}) bool + func (m *StrAnyMap) SetIfNotExistFunc(key string, f func() interface{}) bool + func (m *StrAnyMap) SetIfNotExistFuncLock(key string, f func() interface{}) bool + func (m *StrAnyMap) Sets(data map[string]interface{}) + func (m *StrAnyMap) Size() int + func (m *StrAnyMap) String() string + func (m *StrAnyMap) UnmarshalJSON(b []byte) error + func (m *StrAnyMap) UnmarshalValue(value interface{}) (err error) + func (m *StrAnyMap) Values() []interface{} + func (m StrAnyMap) MarshalJSON() ([]byte, error) + type StrIntMap struct + func NewStrIntMap(safe ...bool) *StrIntMap + func NewStrIntMapFrom(data map[string]int, safe ...bool) *StrIntMap + func (m *StrIntMap) Clear() + func (m *StrIntMap) Clone() *StrIntMap + func (m *StrIntMap) Contains(key string) bool + func (m *StrIntMap) DeepCopy() interface{} + func (m *StrIntMap) FilterEmpty() + func (m *StrIntMap) Flip() + func (m *StrIntMap) Get(key string) (value int) + func (m *StrIntMap) GetOrSet(key string, value int) int + func (m *StrIntMap) GetOrSetFunc(key string, f func() int) int + func (m *StrIntMap) GetOrSetFuncLock(key string, f func() int) int + func (m *StrIntMap) IsEmpty() bool + func (m *StrIntMap) IsSubOf(other *StrIntMap) bool + func (m *StrIntMap) Iterator(f func(k string, v int) bool) + func (m *StrIntMap) Keys() []string + func (m *StrIntMap) LockFunc(f func(m map[string]int)) + func (m *StrIntMap) Map() map[string]int + func (m *StrIntMap) MapCopy() map[string]int + func (m *StrIntMap) MapStrAny() map[string]interface{} + func (m *StrIntMap) Merge(other *StrIntMap) + func (m *StrIntMap) Pop() (key string, value int) + func (m *StrIntMap) Pops(size int) map[string]int + func (m *StrIntMap) RLockFunc(f func(m map[string]int)) + func (m *StrIntMap) Remove(key string) (value int) + func (m *StrIntMap) Removes(keys []string) + func (m *StrIntMap) Replace(data map[string]int) + func (m *StrIntMap) Search(key string) (value int, found bool) + func (m *StrIntMap) Set(key string, val int) + func (m *StrIntMap) SetIfNotExist(key string, value int) bool + func (m *StrIntMap) SetIfNotExistFunc(key string, f func() int) bool + func (m *StrIntMap) SetIfNotExistFuncLock(key string, f func() int) bool + func (m *StrIntMap) Sets(data map[string]int) + func (m *StrIntMap) Size() int + func (m *StrIntMap) String() string + func (m *StrIntMap) UnmarshalJSON(b []byte) error + func (m *StrIntMap) UnmarshalValue(value interface{}) (err error) + func (m *StrIntMap) Values() []int + func (m StrIntMap) MarshalJSON() ([]byte, error) + type StrStrMap struct + func NewStrStrMap(safe ...bool) *StrStrMap + func NewStrStrMapFrom(data map[string]string, safe ...bool) *StrStrMap + func (m *StrStrMap) Clear() + func (m *StrStrMap) Clone() *StrStrMap + func (m *StrStrMap) Contains(key string) bool + func (m *StrStrMap) DeepCopy() interface{} + func (m *StrStrMap) FilterEmpty() + func (m *StrStrMap) Flip() + func (m *StrStrMap) Get(key string) (value string) + func (m *StrStrMap) GetOrSet(key string, value string) string + func (m *StrStrMap) GetOrSetFunc(key string, f func() string) string + func (m *StrStrMap) GetOrSetFuncLock(key string, f func() string) string + func (m *StrStrMap) IsEmpty() bool + func (m *StrStrMap) IsSubOf(other *StrStrMap) bool + func (m *StrStrMap) Iterator(f func(k string, v string) bool) + func (m *StrStrMap) Keys() []string + func (m *StrStrMap) LockFunc(f func(m map[string]string)) + func (m *StrStrMap) Map() map[string]string + func (m *StrStrMap) MapCopy() map[string]string + func (m *StrStrMap) MapStrAny() map[string]interface{} + func (m *StrStrMap) Merge(other *StrStrMap) + func (m *StrStrMap) Pop() (key, value string) + func (m *StrStrMap) Pops(size int) map[string]string + func (m *StrStrMap) RLockFunc(f func(m map[string]string)) + func (m *StrStrMap) Remove(key string) (value string) + func (m *StrStrMap) Removes(keys []string) + func (m *StrStrMap) Replace(data map[string]string) + func (m *StrStrMap) Search(key string) (value string, found bool) + func (m *StrStrMap) Set(key string, val string) + func (m *StrStrMap) SetIfNotExist(key string, value string) bool + func (m *StrStrMap) SetIfNotExistFunc(key string, f func() string) bool + func (m *StrStrMap) SetIfNotExistFuncLock(key string, f func() string) bool + func (m *StrStrMap) Sets(data map[string]string) + func (m *StrStrMap) Size() int + func (m *StrStrMap) String() string + func (m *StrStrMap) UnmarshalJSON(b []byte) error + func (m *StrStrMap) UnmarshalValue(value interface{}) (err error) + func (m *StrStrMap) Values() []string + func (m StrStrMap) MarshalJSON() ([]byte, error) + type TreeMap = gtree.RedBlackTree + func NewTreeMap(comparator func(v1, v2 interface{}) int, safe ...bool) *TreeMap + func NewTreeMapFrom(comparator func(v1, v2 interface{}) int, data map[interface{}]interface{}, ...) *TreeMap