Documentation
¶
Index ¶
- type Map
- type MapStr
- type MapStrAny
- func Make() MapStrAny
- func MakeMap() MapStrAny
- func MakeMapStr() MapStrAny
- func MakeMapStrAny() MapStrAny
- func MakeStr() MapStrAny
- func MakeStrAny() MapStrAny
- func MapOf(values map[string]interface{}) MapStrAny
- func MapStrAnyOf(values map[string]interface{}) MapStrAny
- func MapStrOf(values map[string]interface{}) MapStrAny
- func Of(values map[string]interface{}) MapStrAny
- func StrAnyOf(values map[string]interface{}) MapStrAny
- func StrOf(values map[string]interface{}) MapStrAny
- func (m MapStrAny) Del(key string)
- func (m MapStrAny) Dot() MapStrAny
- func (m MapStrAny) Flatten() MapStrAny
- func (m MapStrAny) Get(key string) interface{}
- func (m MapStrAny) GetAndDel(key string) interface{}
- func (m MapStrAny) GetOrSet(key string, value interface{}) interface{}
- func (m MapStrAny) Has(key string) bool
- func (m MapStrAny) IsEmpty() bool
- func (m MapStrAny) Keys() []string
- func (m MapStrAny) Len() int
- func (m MapStrAny) Merge(maps ...interfaces.MapStrAny)
- func (m MapStrAny) Range(cb func(key string, value interface{}) bool)
- func (m MapStrAny) Set(key string, value interface{})
- func (m MapStrAny) SetUnDot(key string, value interface{})
- func (m MapStrAny) UnDot() MapStrAny
- func (m MapStrAny) UnFlatten() MapStrAny
- func (m MapStrAny) Values() []interface{}
- type MapStrAnySync
- func MakeMapStrAnySync() MapStrAnySync
- func MakeMapStrSync() MapStrAnySync
- func MakeMapSync() MapStrAnySync
- func MakeStrAnySync() MapStrAnySync
- func MakeStrSync() MapStrAnySync
- func MakeSync() MapStrAnySync
- func MapStrAnySyncOf(data map[string]interface{}) MapStrAnySync
- func MapStrSyncOf(data map[string]interface{}) MapStrAnySync
- func MapSyncOf(data map[string]interface{}) MapStrAnySync
- func StrAnySyncOf(data map[string]interface{}) MapStrAnySync
- func StrSyncOf(data map[string]interface{}) MapStrAnySync
- func SyncOf(data map[string]interface{}) MapStrAnySync
- func (m MapStrAnySync) Del(key string)
- func (m MapStrAnySync) Dot() MapStrAnySync
- func (m MapStrAnySync) Flatten() MapStrAnySync
- func (m MapStrAnySync) Get(key string) interface{}
- func (m MapStrAnySync) GetAndDel(key string) interface{}
- func (m MapStrAnySync) GetOrSet(key string, value interface{}) interface{}
- func (m MapStrAnySync) Has(key string) bool
- func (m MapStrAnySync) IsEmpty() bool
- func (m MapStrAnySync) Keys() []string
- func (m MapStrAnySync) Len() int
- func (m MapStrAnySync) MarshalJSON() ([]byte, error)
- func (m MapStrAnySync) Merge(maps ...interfaces.MapStrAny)
- func (m MapStrAnySync) Range(cb func(key string, value interface{}) bool)
- func (m MapStrAnySync) Set(key string, value interface{})
- func (m MapStrAnySync) Values() []interface{}
- type MapStrSync
- type MapSync
- type Str
- type StrAny
- type StrAnySync
- type StrSync
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapStrAny ¶
type MapStrAny map[string]interface{}
MapStrAny type of map[string}]inteface{}
func MapStrAnyOf ¶
MapStrAnyOf create a new instance (the default type of map)
func (MapStrAny) Dot ¶
Dot The Dot method flattens a multi-dimensional map[string]inteface{} into a single level map[string]inteface{} that uses "dot" notation to indicate depth
func (MapStrAny) Flatten ¶
Flatten The Flatten method is alias of Dot, to flatten a multi-dimensional map[string]inteface{} into a single level map[string]inteface{} that uses "dot" notation to indicate depth
func (MapStrAny) Get ¶
Get returns the value stored in the map for a key, or nil if no value is present.
func (MapStrAny) GetAndDel ¶
GetAndDel deletes the value for a key, returning the previous value if any. The loaded result reports whether the key was present.
func (MapStrAny) GetOrSet ¶
GetOrSet returns the existing value for the key if present. Otherwise, it stores and returns the given value.
func (MapStrAny) IsEmpty ¶
IsEmpty checks whether the map is empty. It returns true if map is empty, or else false.
func (MapStrAny) Merge ¶
func (m MapStrAny) Merge(maps ...interfaces.MapStrAny)
Merge merges hash maps
func (MapStrAny) Range ¶
Range calls f sequentially for each key and value present in the map. If f returns false, range stops the iteration.
func (MapStrAny) UnDot ¶
UnDot The UnDot method unflatten a single level map[string]inteface{} into multi-dimensional map[string]inteface{} that uses "dot" notation to indicate depth
type MapStrAnySync ¶
MapStrAnySync type of sync.Map
func MakeMapStrAnySync ¶
func MakeMapStrAnySync() MapStrAnySync
MakeMapStrAnySync create a new instance
func MapStrAnySyncOf ¶
func MapStrAnySyncOf(data map[string]interface{}) MapStrAnySync
MapStrAnySyncOf create a new instance
func MapStrSyncOf ¶
func MapStrSyncOf(data map[string]interface{}) MapStrAnySync
MapStrSyncOf create a new instance
func MapSyncOf ¶
func MapSyncOf(data map[string]interface{}) MapStrAnySync
MapSyncOf create a new instance
func StrAnySyncOf ¶
func StrAnySyncOf(data map[string]interface{}) MapStrAnySync
StrAnySyncOf create a new instance
func StrSyncOf ¶
func StrSyncOf(data map[string]interface{}) MapStrAnySync
StrSyncOf create a new instance
func (MapStrAnySync) Dot ¶
func (m MapStrAnySync) Dot() MapStrAnySync
Dot The Dot method flattens a multi-dimensional map[string]inteface{} into a single level map[string]inteface{} that uses "dot" notation to indicate depth
func (MapStrAnySync) Flatten ¶
func (m MapStrAnySync) Flatten() MapStrAnySync
Flatten The Flatten method is alias of Dot, to flatten a multi-dimensional map[string]inteface{} into a single level map[string]inteface{} that uses "dot" notation to indicate depth
func (MapStrAnySync) Get ¶
func (m MapStrAnySync) Get(key string) interface{}
Get get the value of the given key
func (MapStrAnySync) GetAndDel ¶
func (m MapStrAnySync) GetAndDel(key string) interface{}
GetAndDel deletes the value for a key, returning the previous value if any. The loaded result reports whether the key was present.
func (MapStrAnySync) GetOrSet ¶
func (m MapStrAnySync) GetOrSet(key string, value interface{}) interface{}
GetOrSet returns the existing value for the key if present. Otherwise, it stores and returns the given value.
func (MapStrAnySync) Has ¶
func (m MapStrAnySync) Has(key string) bool
Has return true whether value was found in the map.
func (MapStrAnySync) IsEmpty ¶
func (m MapStrAnySync) IsEmpty() bool
IsEmpty checks whether the map is empty. It returns true if map is empty, or else false.
func (MapStrAnySync) Keys ¶
func (m MapStrAnySync) Keys() []string
Keys returns all keys of the map as a slice.
func (MapStrAnySync) MarshalJSON ¶ added in v0.8.0
func (m MapStrAnySync) MarshalJSON() ([]byte, error)
MarshalJSON for json marshalJSON
func (MapStrAnySync) Merge ¶
func (m MapStrAnySync) Merge(maps ...interfaces.MapStrAny)
Merge merges hash maps
func (MapStrAnySync) Range ¶
func (m MapStrAnySync) Range(cb func(key string, value interface{}) bool)
Range calls f sequentially for each key and value present in the map. If f returns false, range stops the iteration.
func (MapStrAnySync) Set ¶
func (m MapStrAnySync) Set(key string, value interface{})
Set set the value for a key
func (MapStrAnySync) Values ¶
func (m MapStrAnySync) Values() []interface{}
Values returns all values of the map as a slice.