mirror of
https://github.com/json-iterator/go.git
synced 2025-05-16 21:45:43 +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
|
||||
Valid(data []byte) bool
|
||||
RegisterExtension(extension Extension)
|
||||
DecoderOf(typ reflect2.Type) ValDecoder
|
||||
EncoderOf(typ reflect2.Type) ValEncoder
|
||||
}
|
||||
|
||||
// ConfigDefault the default API
|
||||
|
Loading…
x
Reference in New Issue
Block a user