修复拼写错误

This commit is contained in:
2021-04-13 22:14:32 +08:00
parent 2fd996aa4c
commit d98822a5ee
2 changed files with 5 additions and 4 deletions

View File

@ -63,8 +63,9 @@ func TestSelect(t *testing.T) {
"slice": []int{1, 2, 3},
},
"slice": []int{1, 2, 3},
"map": map[string]interface{}{"a": 1, "b": 2, "c": 4},
}
pathList := []string{"name", "extra.age", "slice"}
pathList := []string{"name", "extra.age", "slice", "map"}
r, e := NewParseJSONTree(source).Parse(pathList)
fmt.Println(r.String(), e)
}