Documentation
¶
Index ¶
- func GetAny(event_map *Dict, members string) (interface{}, bool)
- func GetInt(event_map *Dict, members string) (int, bool)
- func GetString(event_map *Dict, members string) (string, bool)
- type Dict
- func (self *Dict) Delete(key string)
- func (self *Dict) Get(key string) (interface{}, bool)
- func (self *Dict) GetBool(key string) (bool, bool)
- func (self *Dict) GetDefault() interface{}
- func (self *Dict) GetInt64(key string) (int64, bool)
- func (self *Dict) GetString(key string) (string, bool)
- func (self *Dict) GetStrings(key string) ([]string, bool)
- func (self *Dict) GoString() string
- func (self *Dict) IsCaseInsensitive() bool
- func (self *Dict) Keys() []string
- func (self *Dict) Len() int
- func (self *Dict) MarshalJSON() ([]byte, error)
- func (self *Dict) MarshalYAML() (interface{}, error)
- func (self *Dict) MergeFrom(other *Dict)
- func (self *Dict) Set(key string, value interface{}) *Dict
- func (self *Dict) SetCaseInsensitive() *Dict
- func (self *Dict) SetDefault(value interface{}) *Dict
- func (self *Dict) String() string
- func (self *Dict) ToDict() *map[string]interface{}
- func (self *Dict) UnmarshalJSON(data []byte) error
- func (self *Dict) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (self *Dict) Update(key string, value interface{}) *Dict
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dict ¶
A concerete implementation of a row - similar to Python's OrderedDict. Main difference is that delete is not implemented - we just preserve the order of insertions.
func (*Dict) GetDefault ¶
func (self *Dict) GetDefault() interface{}
func (*Dict) IsCaseInsensitive ¶
func (*Dict) MarshalJSON ¶
Preserve key order when marshalling to JSON.
func (*Dict) MarshalYAML ¶
func (*Dict) SetCaseInsensitive ¶
func (*Dict) SetDefault ¶
func (*Dict) UnmarshalJSON ¶
this implements type json.Unmarshaler interface, so can be called in json.Unmarshal(data, om). We preserve key order when unmarshaling from JSON.
func (*Dict) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.