1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-15 22:50:24 +02:00

wrap float

This commit is contained in:
Tao Wen
2017-01-26 16:33:16 +08:00
parent 85edb698c8
commit cf4113fc22
5 changed files with 74 additions and 3 deletions

View File

@ -65,7 +65,11 @@ func (any *baseAny) SetObject(map[string]Any) bool {
}
func WrapInt64(val int64) Any {
return &intAny{baseAny{}, nil, val}
return &intAny{baseAny{}, val}
}
func WrapFloat64(val float64) Any {
return &floatAny{baseAny{}, val}
}
func (iter *Iterator) ReadAny() Any {