Documentation ¶
Index ¶
- Variables
- func JsonToMap(data []byte) (m map[string]interface{}, err error)
- type MapDict
- func (d *MapDict) Data() map[string]interface{}
- func (d *MapDict) Each(fn func(interface{}, string))
- func (d *MapDict) Filter(fn func(interface{}, string) bool) *MapDict
- func (d *MapDict) Forget(k interface{})
- func (d *MapDict) Get(k interface{}) interface{}
- func (d *MapDict) IsEmpty() bool
- func (d *MapDict) Json() string
- func (d *MapDict) Keys() (keys []string)
- func (d *MapDict) Len() int
- func (d *MapDict) ParseJsonString(data []byte) (err error)
- func (d *MapDict) Set(k interface{}, v interface{})
- func (d *MapDict) SetData(data map[string]interface{})
- func (d *MapDict) String() string
- func (d *MapDict) Values() (values []interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotDict = errors.New(`parsed object is not map[string]interface{}`)
)
Functions ¶
Types ¶
type MapDict ¶
type MapDict struct {
// contains filtered or unexported fields
}
func NewMapDict ¶
func NewMapDict() *MapDict
func (*MapDict) ParseJsonString ¶
Click to show internal directories.
Click to hide internal directories.