package jmespath

Import Path
	github.com/jmespath/go-jmespath (on go.dev)

Dependency Relation
	imports 11 packages, and imported by one package


Package-Level Type Names (total 18, in which 5 are exported)
/* sort exporteds by: | */
ASTNode represents the abstract syntax tree of a JMESPath expression. PrettyPrint will pretty print the parsed AST. The AST is an implementation detail and this pretty print function is provided as a convenience method to help with debugging. You should not rely on its output as the internal structure of the AST may change at any time. ( T) String() string T : expvar.Var T : fmt.Stringer func (*Parser).Parse(expression string) (ASTNode, error)
JMESPath is the representation of a compiled JMES path query. A JMESPath is safe for concurrent use by multiple goroutines. Search evaluates a JMESPath expression against input data and returns the result. func Compile(expression string) (*JMESPath, error) func MustCompile(expression string) *JMESPath
Lexer contains information about the expression being tokenized. func NewLexer() *Lexer
Parser holds state about the current expression being parsed. Parse will compile a JMESPath expression. func NewParser() *Parser
SyntaxError is the main error used whenever a lexing or parsing error occurs. // Expression that generated a SyntaxError // The location in the string where the error occurred ( T) Error() string HighlightLocation will show where the syntax error occurred. It will place a "^" character on a line below the expression at the point where the syntax error occurred. T : error
Package-Level Functions (total 42, in which 5 are exported)
Compile parses a JMESPath expression and returns, if successful, a JMESPath object that can be used to match against data.
MustCompile is like Compile but panics if the expression cannot be parsed. It simplifies safe initialization of global variables holding compiled JMESPaths.
NewLexer creates a new JMESPath lexer.
NewParser creates a new JMESPath parser.
Package-Level Variables (total 6, none are exported)
Package-Level Constants (total 67, in which 23 are exported)