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

@ -73,4 +73,9 @@ func (any *floatLazyAny) ToString() string {
func (any *floatLazyAny) WriteTo(stream *Stream) {
stream.Write(any.buf)
}
func (any *floatLazyAny) GetInterface() interface{} {
any.fillCache()
return any.cache
}