mirror of
https://github.com/json-iterator/go.git
synced 2025-01-20 18:48:32 +02:00
gofmt
This commit is contained in:
parent
365d399192
commit
8367a97ad8
@ -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
|
||||
}
|
||||
|
||||
|
@ -231,4 +231,4 @@ func Test_marshaler_on_struct(t *testing.T) {
|
||||
fixed := tmStruct{"hello"}
|
||||
//json.Marshal(fixed)
|
||||
Marshal(fixed)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user