mirror of
https://github.com/json-iterator/go.git
synced 2025-05-13 21:36:29 +02:00
expose DecoderOf and EncoderOf
This commit is contained in:
parent
25fa392355
commit
39acec93e0
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user