You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-21 23:07:33 +02:00
move type declaration into separate files
This commit is contained in:
@ -6,6 +6,9 @@ import (
|
||||
"reflect"
|
||||
)
|
||||
|
||||
var jsonRawMessageType = reflect.TypeOf((*json.RawMessage)(nil)).Elem()
|
||||
var jsoniterRawMessageType = reflect.TypeOf((*RawMessage)(nil)).Elem()
|
||||
|
||||
func createEncoderOfJsonRawMessage(cfg *frozenConfig, prefix string, typ reflect.Type) ValEncoder {
|
||||
if typ == jsonRawMessageType {
|
||||
return &jsonRawMessageCodec{}
|
||||
|
Reference in New Issue
Block a user