Update test script
This commit is contained in:
parent
6037100d4b
commit
3dffc49ea7
6
run.go
6
run.go
|
@ -12,7 +12,7 @@ func main() {
|
||||||
f, _ := os.Open("test.json")
|
f, _ := os.Open("test.json")
|
||||||
b, _ := ioutil.ReadAll(f)
|
b, _ := ioutil.ReadAll(f)
|
||||||
|
|
||||||
p := parser.New(b, "/bananas/[1]/weight")
|
p := parser.New(b, []string{"/bananas/[*]/weight"})
|
||||||
pretty.Println(p)
|
res := p.Parse()
|
||||||
p.Parse()
|
pretty.Println(res)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue