runtime

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 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) 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) 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) 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