Documentation ¶
Index ¶
- type MapStr
- func (cli MapStr) Bool(key string) (bool, error)
- func (cli MapStr) Different(target MapStr) (more MapStr, less MapStr, changes MapStr)
- func (cli MapStr) Exists(key string) bool
- func (cli MapStr) Float(key string) (float64, error)
- func (cli MapStr) ForEach(callItem func(key string, val interface{}))
- func (cli MapStr) Get(key string) (val interface{}, exists bool)
- func (cli MapStr) Int64(key string) (int64, error)
- func (cli MapStr) IsEmpty() bool
- func (cli MapStr) MapStr(key string) (MapStr, error)
- func (cli MapStr) MapStrArray(key string) ([]MapStr, error)
- func (cli MapStr) MarshalJSONInto(target interface{}) error
- func (cli MapStr) Merge(second MapStr)
- func (cli MapStr) Remove(key string) interface{}
- func (cli MapStr) Reset()
- func (cli MapStr) Set(key string, value interface{})
- func (cli MapStr) String(key string) (string, error)
- func (cli MapStr) Time(key string) (*time.Time, error)
- func (cli MapStr) ToJSON() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapStr ¶
type MapStr map[string]interface{}
MapStr the common event data definition
func NewArrayFromInterface ¶
NewArrayFromInterface create a new array from interface
func NewFromInterface ¶
NewFromInterface create a mapstr instance from the interface
func (MapStr) Different ¶
Different the current value is different from the content of the given data
func (MapStr) MapStrArray ¶
MapStrArray get the MapStr object array
func (MapStr) MarshalJSONInto ¶
MarshalJSONInto convert to the input value
func (MapStr) Merge ¶
Merge merge second into self,if the key is the same then the new value replaces the old value.
Click to show internal directories.
Click to hide internal directories.