Documentation
¶
Index ¶
- func Executable()
- func JsonFindByPath(obj interface{}, path []*PathComponent) interface{}
- func PathString(components []*PathComponent) []string
- func RunFindByPath()
- func RunFindByPathNestedItems()
- func RunFindByRegex()
- func RunFindInJsonByRegex(args *FindByRegexArgs)
- type FindByRegexArgs
- type KeyMatch
- type PathComponent
- type Result
- type Selector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Executable ¶
func Executable()
func JsonFindByPath ¶
func JsonFindByPath(obj interface{}, path []*PathComponent) interface{}
func PathString ¶
func PathString(components []*PathComponent) []string
func RunFindByPath ¶
func RunFindByPath()
func RunFindByPathNestedItems ¶
func RunFindByPathNestedItems()
func RunFindByRegex ¶
func RunFindByRegex()
func RunFindInJsonByRegex ¶
func RunFindInJsonByRegex(args *FindByRegexArgs)
Types ¶
type FindByRegexArgs ¶
func (*FindByRegexArgs) Json ¶
func (a *FindByRegexArgs) Json() string
func (*FindByRegexArgs) StartPathSelector ¶
func (a *FindByRegexArgs) StartPathSelector() []*Selector
type KeyMatch ¶
type KeyMatch struct { Path []*PathComponent Value string }
func JsonFindByRegex ¶
func JsonFindByRegex(obj interface{}, path []*PathComponent, re *regexp.Regexp) []*KeyMatch
func (*KeyMatch) PathString ¶
type PathComponent ¶
func NewArrayPathComponent ¶
func NewArrayPathComponent(index int) *PathComponent
func NewMapKeyPathComponent ¶
func NewMapKeyPathComponent(key string) *PathComponent
func NewMapValuePathComponent ¶
func NewMapValuePathComponent(key string) *PathComponent
func (*PathComponent) PathString ¶
func (p *PathComponent) PathString() string
func (*PathComponent) RawString ¶
func (p *PathComponent) RawString() string
type Result ¶
type Result struct { Path []*PathComponent Value interface{} }
func JsonFindBySelector ¶
func JsonFindBySelector(obj interface{}, selector []*Selector, context []*PathComponent) []*Result
Click to show internal directories.
Click to hide internal directories.