Documentation ¶
Index ¶
- type IMap
- type MapStore
- func (s *MapStore) Add(key string, value any) IMap
- func (s *MapStore) All() map[string]any
- func (s *MapStore) Each(callback func(key string, value any)) IMap
- func (s *MapStore) Float(key string) float64
- func (s *MapStore) GetItem(key string) (any, bool)
- func (s *MapStore) Integer(key string) int
- func (s *MapStore) IsEmpty() bool
- func (s *MapStore) Merge(data map[string]any) IMap
- func (s *MapStore) MergeIMap(m IMap) IMap
- func (s *MapStore) Remove(key string) IMap
- func (s *MapStore) Set(data map[string]any) IMap
- func (s *MapStore) SetMultiple(data ...map[string]any) IMap
- func (s *MapStore) String(key string) string
- func (s *MapStore) StringAll() string
- func (s *MapStore) StringList(key string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMap ¶
type IMap interface { All() map[string]any Integer(key string) int String(key string) string StringList(key string) []string Float(key string) float64 GetItem(key string) (any, bool) Add(key string, value any) IMap IsEmpty() bool Remove(key string) IMap Set(data map[string]any) IMap Merge(data map[string]any) IMap Each(callback func(key string, value any)) IMap MergeIMap(m IMap) IMap SetMultiple(data ...map[string]any) IMap StringAll() string }
func NewMapStore ¶
type MapStore ¶
type MapStore struct {
// contains filtered or unexported fields
}
func (*MapStore) StringList ¶
Click to show internal directories.
Click to hide internal directories.