1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- package jsoniter
- type nilAny struct {
- baseAny
- }
- func (any *nilAny) LastError() error {
- return nil
- }
- func (any *nilAny) ValueType() ValueType {
- 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) ToUint() uint {
- return 0
- }
- func (any *nilAny) ToUint32() uint32 {
- return 0
- }
- func (any *nilAny) ToUint64() uint64 {
- return 0
- }
- func (any *nilAny) ToFloat32() float32 {
- return 0
- }
- func (any *nilAny) ToFloat64() float64 {
- return 0
- }
- func (any *nilAny) ToString() string {
- return ""
- }
- func (any *nilAny) WriteTo(stream *Stream) {
- stream.WriteNil()
- }
- func (any *nilAny) Parse() *Iterator {
- return nil
- }
- func (any *nilAny) GetInterface() interface{} {
- return nil
- }
|