1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-24 23:16:47 +02:00

#61 read any reuse skip impl

This commit is contained in:
Tao Wen
2017-06-18 17:00:28 +08:00
parent 54dbcda64d
commit 1ec246d16b
3 changed files with 51 additions and 124 deletions

View File

@ -210,6 +210,7 @@ func (iter *Iterator) readByte() (ret byte) {
func (iter *Iterator) loadMore() bool {
if iter.reader == nil {
if iter.Error == nil {
iter.head = iter.tail
iter.Error = io.EOF
}
return false