mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
df6a536193
full diff: https://github.com/coreos/etcd/compare/v3.3.12...v3.3.25
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 2bef937507
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
69 lines
916 B
Go
69 lines
916 B
Go
package jsoniter
|
|
|
|
type nilAny struct {
|
|
baseAny
|
|
}
|
|
|
|
func (any *nilAny) LastError() error {
|
|
return nil
|
|
}
|
|
|
|
func (any *nilAny) ValueType() ValueType {
|
|
return NilValue
|
|
}
|
|
|
|
func (any *nilAny) MustBeValid() Any {
|
|
return any
|
|
}
|
|
|
|
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
|
|
}
|