This commit is contained in:
Chris Lu
2019-10-09 00:03:18 -07:00
parent 09874f0d16
commit 939e4b57a8
5 changed files with 35 additions and 43 deletions

View File

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