mirror of
https://github.com/json-iterator/go.git
synced 2025-06-03 22:27:26 +02:00
gofmt
This commit is contained in:
parent
365d399192
commit
8367a97ad8
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user