thedevsaddam / gojsonq

A simple Go package to Query over JSON/YAML/XML/CSV Data
https://github.com/thedevsaddam/gojsonq/wiki
MIT License
2.17k stars 140 forks source link

Pass dynamic i.th value in for loop to Find method #69

Closed jaylahoti closed 4 years ago

jaylahoti commented 4 years ago

how can I pass i value in

gojsonq.New().FromString(data).From("tab_info.[0].product_info.products.[i]").

the above code will certainly not work.

Kvaz1r commented 4 years ago

fmt.Sprintf ?