1
0
mirror of https://github.com/json-iterator/go.git synced 2024-11-24 08:22:14 +02:00
json-iterator/feature_any_invalid.go

53 lines
745 B
Go
Raw Normal View History

2017-01-23 02:33:43 +02:00
package jsoniter
type invalidAny struct {
baseAny
2017-01-23 02:33:43 +02:00
}
func (any *invalidAny) LastError() error {
return nil
}
func (any *invalidAny) ToBool() bool {
return false
}
func (any *invalidAny) ToInt() int {
return 0
}
func (any *invalidAny) ToInt32() int32 {
return 0
}
func (any *invalidAny) ToInt64() int64 {
return 0
}
func (any *invalidAny) ToFloat32() float32 {
return 0
}
func (any *invalidAny) ToFloat64() float64 {
return 0
}
func (any *invalidAny) ToString() string {
return ""
}
2017-01-26 08:56:31 +02:00
func (any *invalidAny) WriteTo(stream *Stream) {
}
func (any *invalidAny) Get(path ...interface{}) Any {
return any
}
2017-01-26 09:40:38 +02:00
func (any *invalidAny) Parse() *Iterator {
return nil
}
2017-01-26 09:44:10 +02:00
func (any *invalidAny) GetInterface() interface{} {
return nil
}