Documentation ¶
Index ¶
- func GetQueryPaths(query string) []string
- func GetQueryUpperPaths(query string) ([]string, string)
- type Object
- func (obj *Object) ConvertKeys(keyFunc convertKeyFunc) error
- func (obj *Object) Del(key string)
- func (obj *Object) DelPath(query string)
- func (obj *Object) DelPaths(paths []string)
- func (obj *Object) FlatKeyValue(token string) (map[string]interface{}, error)
- func (obj *Object) Float64() (float64, error)
- func (obj *Object) Get(key string) *Object
- func (obj *Object) GetPath(query string) *Object
- func (obj *Object) GetPaths(paths []string) *Object
- func (obj *Object) Int64() (int64, error)
- func (obj *Object) IsNull() bool
- func (obj *Object) Map() (map[string]interface{}, error)
- func (obj *Object) Set(key string, val interface{})
- func (obj *Object) SetPath(query string, val interface{})
- func (obj *Object) SetPaths(paths []string, val interface{})
- func (obj *Object) String() (string, error)
- func (obj *Object) Value() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetQueryPaths ¶
func GetQueryUpperPaths ¶
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func (*Object) ConvertKeys ¶ added in v1.3.0
ConvertKeys All keys in the object are processed by the convertKeyFunc function. If convertKeyFunc returns empty, the key will not be processed.
func (*Object) FlatKeyValue ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.