Versions in this module Expand all Collapse all v0 v0.6.2 May 9, 2025 v0.6.1 Jan 27, 2025 v0.6.0 Jan 27, 2025 v0.5.2 Jan 24, 2025 v0.5.1 Jan 24, 2025 v0.5.0 Jan 24, 2025 v0.4.1 Jan 11, 2025 v0.4.0 Jan 11, 2025 v0.3.1 Jan 8, 2025 v0.3.0 Jan 8, 2025 Changes in this version type JSONPath + func (p *JSONPath) String() string v0.2.0 Jan 7, 2025 Changes in this version + const MaxSafeFloat + type Evaluator interface + Query func(current *yaml.Node, root *yaml.Node) []*yaml.Node + type JSONPath struct + func NewPath(input string) (*JSONPath, error) + func (p *JSONPath) Query(root *yaml.Node) []*yaml.Node type Selector + Kind SelectorSubKind + func (s Selector) Query(value *yaml.Node, root *yaml.Node) []*yaml.Node + func (s Selector) ToString() string + type Slice struct + End *int + Start *int + Step *int v0.1.1 Jul 12, 2024 v0.1.0 Jul 10, 2024 Changes in this version + const DescendantDotNameSelector + const DescendantLongSelector + const DescendantWildcardSelector + const EdgeItem + const EdgeLast + var ParseError = errors.New("parse error") + var SimpleTokens = [...]Token + func Entry(yaml string, jsonpath string) string + type BooleanNode struct + Value TokenInfo + func (n *BooleanNode) End() TokenInfo + func (n *BooleanNode) Pos() TokenInfo + func (n *BooleanNode) String() string + type ChildSegment struct + InnerSelector *Selector + SubKind ChildSegmentSubKind + Tokens []TokenInfo + func (c ChildSegment) Kind() Kind + type ChildSegmentSubKind int + const ChildSegmentDotMemberName + const ChildSegmentDotWildcard + const ChildSegmentSelector + type ComparisonNode struct + Lhs Expr + Operator TokenInfo + Rhs Expr + type CurrentNode struct + At TokenInfo + func (n *CurrentNode) String() string + type DescendantSegment struct + LongFormInner Segment + SubKind DescendantSegmentSubKind + func (d DescendantSegment) Kind() Kind + type DescendantSegmentSubKind int + type Expr interface + type FunctionCallNode struct + Args []Expr + Lparen TokenInfo + Name TokenInfo + Rparen TokenInfo + func (n *FunctionCallNode) End() TokenInfo + func (n *FunctionCallNode) Pos() TokenInfo + type Kind int + const ChildSegmentKind + const DescendantSegmentKind + type Node interface + Kind func() Kind + type NullNode struct + Null TokenInfo + func (n *NullNode) End() TokenInfo + func (n *NullNode) Pos() TokenInfo + func (n *NullNode) String() string + type NumberNode struct + Value TokenInfo + func (n *NumberNode) End() TokenInfo + func (n *NumberNode) Pos() TokenInfo + func (n *NumberNode) String() string + type Parser struct + func NewParser(tokenizer *Tokenizer) *Parser + func (p *Parser) Parse() error + type Query struct + RootNode TokenInfo + Segments []Segment + type RootNode struct + Dollar TokenInfo + func (n *RootNode) End() TokenInfo + func (n *RootNode) Pos() TokenInfo + func (n *RootNode) String() string + type Segment = Node + type Selector struct + SubKind SelectorSubKind + type SelectorSubKind int + const SelectorSubKindArrayIndex + const SelectorSubKindArraySlice + const SelectorSubKindFilter + const SelectorSubKindName + const SelectorSubKindWildcard + type StringNode struct + Value TokenInfo + func (n *StringNode) End() TokenInfo + func (n *StringNode) Pos() TokenInfo + func (n *StringNode) String() string + type Token int + const AND + const ARRAY_SLICE + const BOOLEAN + const BRACKET_LEFT + const BRACKET_RIGHT + const CHILD + const COLON + const COMMA + const CURRENT + const EQ + const FILTER + const GE + const GT + const ILLEGAL + const LE + const LT + const MATCHES + const NE + const NOT + const NULL + const NUMBER + const OR + const PAREN_LEFT + const PAREN_RIGHT + const RECURSIVE + const ROOT + const STRING + const STRING_LITERAL + const TILDE + const UNION + const WILDCARD + func (tok Token) String() string + type TokenInfo struct + Column int + Len int + Line int + Literal string + Token Token + type Tokenizer struct + func NewTokenizer(input string) *Tokenizer + func (t *Tokenizer) Tokenize() Tokens + func (t Tokenizer) ErrorString(target TokenInfo, msg string) string + func (t Tokenizer) ErrorTokenString(target TokenInfo, msg string) string + type Tokens []TokenInfo + func (tok Tokens) IsSimple() bool