1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-15 22:50:24 +02:00

add Any GetInterface

This commit is contained in:
Tao Wen
2017-01-26 15:44:10 +08:00
parent 97472ecd96
commit 9abc2f52b0
9 changed files with 46 additions and 0 deletions

View File

@ -270,4 +270,9 @@ func (any *arrayLazyAny) WriteTo(stream *Stream) {
any.fillCache()
stream.WriteVal(any.cache)
}
}
func (any *arrayLazyAny) GetInterface() interface{} {
any.fillCache()
return any.cache
}