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

array encoder

This commit is contained in:
Tao Wen
2017-01-09 19:48:57 +08:00
parent 552afb3625
commit 90fc0b822f
5 changed files with 74 additions and 12 deletions

View File

@ -415,6 +415,5 @@ type emptyStructEncoder struct {
}
func (encoder *emptyStructEncoder) encode(ptr unsafe.Pointer, stream *Stream) {
stream.WriteObjectStart()
stream.WriteObjectEnd()
stream.WriteEmptyObject()
}