thedevsaddam / gojsonq

A simple Go package for querying over JSON, YAML, XML, and CSV data.
https://github.com/thedevsaddam/gojsonq/wiki
MIT License
2.19k stars 140 forks source link

Add support for Result #62

Closed thedevsaddam closed 5 years ago

thedevsaddam commented 5 years ago
const json = `{"name":{"first":"Tom","last":"Hanks"},"age":61}`
result, err := gojsonq.New().JSONString(json).FindR("name.first")
if err != nil {
    log.Fatal(err)
}
name, _ := result.String()
fmt.Println(name)
coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 318


Totals Coverage Status
Change from base Build 309: 0.0%
Covered Lines: 10304
Relevant Lines: 10304

💛 - Coveralls