mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
revert json.UnmarshalUseNumber to json.Unmarshal for code in the example folder
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user