1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-18 22:57:33 +02:00

Any Get will never return nil

This commit is contained in:
Tao Wen
2017-01-26 16:24:01 +08:00
parent 9abc2f52b0
commit 85edb698c8
12 changed files with 106 additions and 13 deletions

View File

@ -8,6 +8,10 @@ func (any *nilAny) LastError() error {
return nil
}
func (any *nilAny) ValueType() ValueType {
return Nil
}
func (any *nilAny) ToBool() bool {
return false
}