1
0
mirror of https://github.com/json-iterator/go.git synced 2025-01-20 18:48:32 +02:00
This commit is contained in:
Tao Wen 2017-06-20 07:39:54 +08:00
parent 365d399192
commit 8367a97ad8
2 changed files with 4 additions and 4 deletions

View File

@ -5,8 +5,8 @@ import (
"encoding/json"
"fmt"
"reflect"
"unsafe"
"time"
"unsafe"
)
// Decoder is an internal type registered to cache as needed.
@ -170,7 +170,7 @@ func (encoder *optionalEncoder) isEmpty(ptr unsafe.Pointer) bool {
}
type placeholderEncoder struct {
cfg *frozenConfig
cfg *frozenConfig
cacheKey reflect.Type
}
@ -200,7 +200,7 @@ func (encoder *placeholderEncoder) getRealEncoder() Encoder {
}
type placeholderDecoder struct {
cfg *frozenConfig
cfg *frozenConfig
cacheKey reflect.Type
}

View File

@ -231,4 +231,4 @@ func Test_marshaler_on_struct(t *testing.T) {
fixed := tmStruct{"hello"}
//json.Marshal(fixed)
Marshal(fixed)
}
}