2017-01-22 17:29:48 +02:00
|
|
|
package jsoniter
|
|
|
|
|
|
|
|
type nilAny struct {
|
2017-01-23 18:23:07 +02:00
|
|
|
baseAny
|
2017-01-22 17:29:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (any *nilAny) LastError() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *nilAny) ToBool() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *nilAny) ToInt() int {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *nilAny) ToInt32() int32 {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *nilAny) ToInt64() int64 {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *nilAny) ToFloat32() float32 {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *nilAny) ToFloat64() float64 {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *nilAny) ToString() string {
|
2017-01-26 08:56:31 +02:00
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *nilAny) WriteTo(stream *Stream) {
|
|
|
|
stream.WriteNil()
|
2017-01-24 16:56:18 +02:00
|
|
|
}
|