go fmt
This commit is contained in:
@@ -26,7 +26,7 @@ func QueryJson(jsonLine string, projections []string, query Query) (passedFilter
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func filterJson(jsonLine string, query Query) bool{
|
||||
func filterJson(jsonLine string, query Query) bool {
|
||||
|
||||
value := gjson.Get(jsonLine, query.Field)
|
||||
|
||||
|
||||
@@ -55,9 +55,9 @@ func TestGjson(t *testing.T) {
|
||||
|
||||
`
|
||||
|
||||
projections := []string{"quiz","fruit"}
|
||||
projections := []string{"quiz", "fruit"}
|
||||
|
||||
gjson.ForEachLine(data, func(line gjson.Result) bool{
|
||||
gjson.ForEachLine(data, func(line gjson.Result) bool {
|
||||
println(line.Raw)
|
||||
println("+++++++++++")
|
||||
results := gjson.GetMany(line.Raw, projections...)
|
||||
@@ -68,8 +68,6 @@ func TestGjson(t *testing.T) {
|
||||
return true
|
||||
})
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
func TestJsonQueryRow(t *testing.T) {
|
||||
@@ -133,4 +131,3 @@ func TestJsonQueryNumber(t *testing.T) {
|
||||
println(string(buf))
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user