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

int lazy any

This commit is contained in:
Tao Wen
2017-01-22 23:29:48 +08:00
parent 9df37bbd68
commit ba410b045b
7 changed files with 248 additions and 0 deletions

39
feature_any_float.go Normal file
View File

@ -0,0 +1,39 @@
package jsoniter
type floatLazyAny struct {
buf []byte
iter *Iterator
err error
}
func (any *floatLazyAny) LastError() error {
return any.err
}
func (any *floatLazyAny) ToBool() bool {
return false
}
func (any *floatLazyAny) ToInt() int {
return 0
}
func (any *floatLazyAny) ToInt32() int32 {
return 0
}
func (any *floatLazyAny) ToInt64() int64 {
return 0
}
func (any *floatLazyAny) ToFloat32() float32 {
return 0
}
func (any *floatLazyAny) ToFloat64() float64 {
return 0
}
func (any *floatLazyAny) ToString() string {
return ""
}