replace json.Unmarshal with json.UnmarshalUseNumber for packages

This commit is contained in:
John Guo
2021-05-15 22:38:07 +08:00
parent facb2949c3
commit 7003c284d0
87 changed files with 243 additions and 198 deletions

View File

@ -140,7 +140,7 @@ var data = `{
func main() {
struct1 := new(XinYanModel)
err := json.Unmarshal([]byte(data), struct1)
err := json.UnmarshalUseNumber([]byte(data), struct1)
fmt.Println(err)
fmt.Println(struct1)