fix: json unmarshal int

This commit is contained in:
debugtalk
2021-10-09 23:17:36 +08:00
parent fbc557ecd9
commit bfc1742e3b
4 changed files with 66 additions and 13 deletions

View File

@@ -80,7 +80,9 @@ func loadFromJSON(path string) (*TCase, error) {
}
tc := &TCase{}
err = json.Unmarshal(file, tc)
decoder := json.NewDecoder(bytes.NewReader(file))
decoder.UseNumber()
err = decoder.Decode(tc)
return tc, err
}