Conver to regular Go vendor + dep tool

This commit is contained in:
Andrey Smirnov committed 2017-03-22 19:24:06 +03:00
1 parent 070347295e
commit c6c1012330
3260 files changed
+1742550 -72

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
package jmespath
// Search evaluates a JMESPath expression against input data and returns the result.
func Search(expression string, data interface{}) (interface{}, error) {
intr := newInterpreter()
parser := NewParser()
ast, err := parser.Parse(expression)
if err != nil {
return nil, err
}
return intr.Execute(ast, data)
}