You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-15 22:50:24 +02:00
implement Any WriteTo
This commit is contained in:
@ -64,4 +64,8 @@ func (any *floatLazyAny) ToFloat64() float64 {
|
||||
|
||||
func (any *floatLazyAny) ToString() string {
|
||||
return *(*string)(unsafe.Pointer(&any.buf))
|
||||
}
|
||||
|
||||
func (any *floatLazyAny) WriteTo(stream *Stream) {
|
||||
stream.Write(any.buf)
|
||||
}
|
Reference in New Issue
Block a user