1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-03 22:27:26 +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" "encoding/json"
"fmt" "fmt"
"reflect" "reflect"
"unsafe"
"time" "time"
"unsafe"
) )
// Decoder is an internal type registered to cache as needed. // 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 { type placeholderEncoder struct {
cfg *frozenConfig cfg *frozenConfig
cacheKey reflect.Type cacheKey reflect.Type
} }
@ -200,7 +200,7 @@ func (encoder *placeholderEncoder) getRealEncoder() Encoder {
} }
type placeholderDecoder struct { type placeholderDecoder struct {
cfg *frozenConfig cfg *frozenConfig
cacheKey reflect.Type cacheKey reflect.Type
} }

View File

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