diff --git a/feature_reflect.go b/feature_reflect.go index 08dd4cb..10d8f09 100644 --- a/feature_reflect.go +++ b/feature_reflect.go @@ -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 } diff --git a/jsoniter_customize_test.go b/jsoniter_customize_test.go index 348070b..efa244b 100644 --- a/jsoniter_customize_test.go +++ b/jsoniter_customize_test.go @@ -231,4 +231,4 @@ func Test_marshaler_on_struct(t *testing.T) { fixed := tmStruct{"hello"} //json.Marshal(fixed) Marshal(fixed) -} \ No newline at end of file +}