1
0
Fork 0

Update test script

This commit is contained in:
Gregory Eremin 2015-02-17 22:47:32 +07:00
parent 6037100d4b
commit 3dffc49ea7
1 changed files with 3 additions and 3 deletions

6
run.go
View File

@ -12,7 +12,7 @@ func main() {
f, _ := os.Open("test.json")
b, _ := ioutil.ReadAll(f)
p := parser.New(b, "/bananas/[1]/weight")
pretty.Println(p)
p.Parse()
p := parser.New(b, []string{"/bananas/[*]/weight"})
res := p.Parse()
pretty.Println(res)
}