1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-24 23:16:47 +02:00
This commit is contained in:
Tao Wen
2017-06-19 23:43:53 +08:00
parent c3f5a2c536
commit f5edf564c8
25 changed files with 44 additions and 48 deletions

View File

@ -158,7 +158,7 @@ func (any *objectLazyAny) Size() int {
defer any.cfg.ReturnIterator(iter)
iter.ReadObjectCB(func(iter *Iterator, field string) bool {
iter.Skip()
size ++
size++
return true
})
return size
@ -187,8 +187,8 @@ func (any *objectLazyAny) GetInterface() interface{} {
type objectAny struct {
baseAny
err error
val reflect.Value
err error
val reflect.Value
}
func wrapStruct(val interface{}) *objectAny {
@ -342,8 +342,8 @@ func (any *objectAny) GetInterface() interface{} {
type mapAny struct {
baseAny
err error
val reflect.Value
err error
val reflect.Value
}
func wrapMap(val interface{}) *mapAny {