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

fix one field struct interface{} optimization compatibility

This commit is contained in:
Tao Wen
2017-05-23 17:44:50 +08:00
parent 53f8d370b5
commit 5488fde97f
6 changed files with 174 additions and 193 deletions

View File

@ -53,7 +53,7 @@ func (encoder *sliceEncoder) encode(ptr unsafe.Pointer, stream *Stream) {
}
func (encoder *sliceEncoder) encodeInterface(val interface{}, stream *Stream) {
WriteToStream(val, stream, encoder)
writeToStream(val, stream, encoder)
}
func (encoder *sliceEncoder) isEmpty(ptr unsafe.Pointer) bool {