runtime

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetQueryPaths

func GetQueryPaths(query string) []string

func GetQueryUpperPaths

func GetQueryUpperPaths(query string) ([]string, string)

Types

type Object

type Object struct {
	// contains filtered or unexported fields
}

func NewObject

func NewObject(obj map[string]interface{}) *Object

func (*Object) ConvertKeys added in v1.3.0

func (obj *Object) ConvertKeys(keyFunc convertKeyFunc) error

ConvertKeys All keys in the object are processed by the convertKeyFunc function. If convertKeyFunc returns empty, the key will not be processed.

func (*Object) Del

func (obj *Object) Del(key string)

func (*Object) DelPath

func (obj *Object) DelPath(query string)

func (*Object) DelPaths

func (obj *Object) DelPaths(paths []string)

func (*Object) FlatKeyValue added in v1.1.0

func (obj *Object) FlatKeyValue(token string) (map[string]interface{}, error)

func (*Object) Float64 added in v1.3.0

func (obj *Object) Float64() (float64, error)

func (*Object) Get

func (obj *Object) Get(key string) *Object

func (*Object) GetPath

func (obj *Object) GetPath(query string) *Object

func (*Object) GetPaths

func (obj *Object) GetPaths(paths []string) *Object

func (*Object) Int64 added in v1.3.0

func (obj *Object) Int64() (int64, error)

func (*Object) IsNull

func (obj *Object) IsNull() bool

func (*Object) Map

func (obj *Object) Map() (map[string]interface{}, error)

func (*Object) Set

func (obj *Object) Set(key string, val interface{})

func (*Object) SetPath

func (obj *Object) SetPath(query string, val interface{})

func (*Object) SetPaths

func (obj *Object) SetPaths(paths []string, val interface{})

func (*Object) String

func (obj *Object) String() (string, error)

func (*Object) Value

func (obj *Object) Value() interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL