diff --git a/.example/container/garray/json_unmarshal.go b/.example/container/garray/json_unmarshal.go index 99fb7adec..07e81adb0 100644 --- a/.example/container/garray/json_unmarshal.go +++ b/.example/container/garray/json_unmarshal.go @@ -14,6 +14,6 @@ func main() { Scores *garray.IntArray } s := Student{} - json.UnmarshalUseNumber(b, &s) + json.Unmarshal(b, &s) fmt.Println(s) } diff --git a/.example/container/glist/json_unmarshal.go b/.example/container/glist/json_unmarshal.go index 32e654bcb..313dfe570 100644 --- a/.example/container/glist/json_unmarshal.go +++ b/.example/container/glist/json_unmarshal.go @@ -14,6 +14,6 @@ func main() { Scores *glist.List } s := Student{} - json.UnmarshalUseNumber(b, &s) + json.Unmarshal(b, &s) fmt.Println(s) } diff --git a/.example/container/gmap/gmap_json_unmarshal.go b/.example/container/gmap/gmap_json_unmarshal.go index 01bdc4f36..af3c134a8 100644 --- a/.example/container/gmap/gmap_json_unmarshal.go +++ b/.example/container/gmap/gmap_json_unmarshal.go @@ -9,6 +9,6 @@ import ( func main() { m := gmap.Map{} s := []byte(`{"name":"john","score":100}`) - json.UnmarshalUseNumber(s, &m) + json.Unmarshal(s, &m) fmt.Println(m.Map()) } diff --git a/.example/container/gset/json_unmarshal.go b/.example/container/gset/json_unmarshal.go index f85afac05..4e90ce823 100644 --- a/.example/container/gset/json_unmarshal.go +++ b/.example/container/gset/json_unmarshal.go @@ -14,6 +14,6 @@ func main() { Scores *gset.IntSet } s := Student{} - json.UnmarshalUseNumber(b, &s) + json.Unmarshal(b, &s) fmt.Println(s) } diff --git a/.example/container/gtype/json_unmarshal.go b/.example/container/gtype/json_unmarshal.go index 7a17a1971..6b72cab08 100644 --- a/.example/container/gtype/json_unmarshal.go +++ b/.example/container/gtype/json_unmarshal.go @@ -14,6 +14,6 @@ func main() { Scores *gtype.Interface } s := Student{} - json.UnmarshalUseNumber(b, &s) + json.Unmarshal(b, &s) fmt.Println(s) } diff --git a/.example/container/gvar/json_unmarshal.go b/.example/container/gvar/json_unmarshal.go index a4a9deba3..31aa9843a 100644 --- a/.example/container/gvar/json_unmarshal.go +++ b/.example/container/gvar/json_unmarshal.go @@ -14,6 +14,6 @@ func main() { Scores *g.Var } s := Student{} - json.UnmarshalUseNumber(b, &s) + json.Unmarshal(b, &s) fmt.Println(s) } diff --git a/.example/encoding/gjson/issue#IZXU2.go b/.example/encoding/gjson/issue#IZXU2.go index f56152fa6..e96f428d3 100644 --- a/.example/encoding/gjson/issue#IZXU2.go +++ b/.example/encoding/gjson/issue#IZXU2.go @@ -140,7 +140,7 @@ var data = `{ func main() { struct1 := new(XinYanModel) - err := json.UnmarshalUseNumber([]byte(data), struct1) + err := json.Unmarshal([]byte(data), struct1) fmt.Println(err) fmt.Println(struct1) diff --git a/.example/net/gtcp/pkg_operations/common/funcs/funcs.go b/.example/net/gtcp/pkg_operations/common/funcs/funcs.go index 4d8c33d10..368874c1e 100644 --- a/.example/net/gtcp/pkg_operations/common/funcs/funcs.go +++ b/.example/net/gtcp/pkg_operations/common/funcs/funcs.go @@ -30,7 +30,7 @@ func RecvPkg(conn *gtcp.Conn) (msg *types.Msg, err error) { return nil, err } else { msg = &types.Msg{} - err = json.UnmarshalUseNumber(data, msg) + err = json.Unmarshal(data, msg) if err != nil { return nil, fmt.Errorf("invalid package structure: %s", err.Error()) } diff --git a/.example/net/gtcp/pkg_operations/monitor/gtcp_monitor_server.go b/.example/net/gtcp/pkg_operations/monitor/gtcp_monitor_server.go index b0820320c..b9758f893 100644 --- a/.example/net/gtcp/pkg_operations/monitor/gtcp_monitor_server.go +++ b/.example/net/gtcp/pkg_operations/monitor/gtcp_monitor_server.go @@ -21,7 +21,7 @@ func main() { break } info := &types.NodeInfo{} - if err := json.UnmarshalUseNumber(data, info); err != nil { + if err := json.Unmarshal(data, info); err != nil { glog.Errorf("invalid package structure: %s", err.Error()) } else { glog.Println(info)