You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-07-12 23:50:19 +02:00
expose DecoderOf and EncoderOf
This commit is contained in:
@ -40,6 +40,8 @@ type API interface {
|
|||||||
NewDecoder(reader io.Reader) *Decoder
|
NewDecoder(reader io.Reader) *Decoder
|
||||||
Valid(data []byte) bool
|
Valid(data []byte) bool
|
||||||
RegisterExtension(extension Extension)
|
RegisterExtension(extension Extension)
|
||||||
|
DecoderOf(typ reflect2.Type) ValDecoder
|
||||||
|
EncoderOf(typ reflect2.Type) ValEncoder
|
||||||
}
|
}
|
||||||
|
|
||||||
// ConfigDefault the default API
|
// ConfigDefault the default API
|
||||||
|
Reference in New Issue
Block a user