package jmespath import ( gojmespath "github.com/jmespath/go-jmespath" ) func New(query string) (*gojmespath.JMESPath, error) { jp, err := gojmespath.Compile(query) if err != nil { return nil, err } for _, function := range getFunctions() { jp.Register(function) } return jp, nil }