aboutsummaryrefslogtreecommitdiff
path: root/weed/query/json/query_json_test.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-10-09 00:03:18 -0700
committerChris Lu <chris.lu@gmail.com>2019-10-09 00:03:18 -0700
commit939e4b57a85c56a598fcdf342e2b5d5c9085e552 (patch)
treec5bdf38050f561c6e30c54c6ad0d86c2492b86eb /weed/query/json/query_json_test.go
parent09874f0d16f60cec9cbce0108c4efa2c40d4786c (diff)
downloadseaweedfs-939e4b57a85c56a598fcdf342e2b5d5c9085e552.tar.xz
seaweedfs-939e4b57a85c56a598fcdf342e2b5d5c9085e552.zip
go fmt
Diffstat (limited to 'weed/query/json/query_json_test.go')
-rw-r--r--weed/query/json/query_json_test.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/weed/query/json/query_json_test.go b/weed/query/json/query_json_test.go
index 621d4f548..1794bb333 100644
--- a/weed/query/json/query_json_test.go
+++ b/weed/query/json/query_json_test.go
@@ -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))
}
-