1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-24 23:16:47 +02:00

simplify float convert

This commit is contained in:
Xargin
2017-07-04 22:28:24 +08:00
parent f245011c7d
commit 3f35bed884
2 changed files with 6 additions and 44 deletions

View File

@ -15,9 +15,9 @@ var floatConvertMap = map[string]float64{
`"false"`: 0,
"123": 123,
`"123true"`: 123,
`"123true"`: 0,
`"-123true"`: -123,
`"-123true"`: 0,
"0": 0,
`"0"`: 0,
"-1": -1,