revert json.UnmarshalUseNumber to json.Unmarshal for code in the example folder

This commit is contained in:
John Guo
2021-05-15 23:13:31 +08:00
parent 8aed1eca13
commit d12409b118
9 changed files with 9 additions and 9 deletions

View File

@ -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)