1
0
mirror of https://github.com/json-iterator/go.git synced 2025-12-17 23:27:37 +02:00

test type encoder

This commit is contained in:
Tao Wen
2017-05-05 08:22:19 +08:00
parent 90888390bc
commit 6bd835aeb1
2 changed files with 19 additions and 0 deletions

View File

@@ -154,6 +154,11 @@ func CleanDecoders() {
fieldDecoders = map[string]Decoder{}
}
func CleanEncoders() {
typeEncoders = map[string]Encoder{}
fieldEncoders = map[string]Encoder{}
}
type optionalDecoder struct {
valueType reflect.Type
valueDecoder Decoder