1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-21 23:07:33 +02:00

remove any

This commit is contained in:
Tao Wen
2017-01-22 19:36:19 +08:00
parent 9c2b1d24b3
commit 9df37bbd68
7 changed files with 1 additions and 703 deletions

View File

@ -12,12 +12,6 @@ func Test_bind_api_demo(t *testing.T) {
fmt.Println(val[3])
}
func Test_any_api_demo(t *testing.T) {
iter := ParseString(`[0,1,2,3]`)
val := iter.ReadAny()
fmt.Println(val.Get(3))
}
func Test_iterator_api_demo(t *testing.T) {
iter := ParseString(`[0,1,2,3]`)
total := 0
@ -27,17 +21,6 @@ func Test_iterator_api_demo(t *testing.T) {
fmt.Println(total)
}
type ABC struct {
a Any
}
func Test_deep_nested_any_api(t *testing.T) {
iter := ParseString(`{"a": {"b": {"c": "d"}}}`)
abc := &ABC{}
iter.ReadVal(&abc)
fmt.Println(abc.a.Get("b", "c"))
}
type User struct {
userID int
name string