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") 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)
} }