You've already forked json-iterator
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:
@ -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,
|
||||
|
Reference in New Issue
Block a user