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

add convert table

This commit is contained in:
Xargin
2017-07-04 15:41:28 +08:00
parent d7b6b4e0bb
commit e5d7a65616
2 changed files with 12 additions and 11 deletions

View File

@ -14,10 +14,12 @@ var boolConvertMap = map[string]bool{
`"true"`: true,
`"false"`: true,
"123": true,
"0": false,
`"0"`: false,
"-1": true,
"123": true,
`"123"`: true,
"0": false,
`"0"`: false,
"-1": true,
`"-1"`: true,
"1.1": true,
"0.0": false,