1
0
mirror of https://github.com/json-iterator/go.git synced 2024-11-24 08:22:14 +02:00

expose DecoderOf and EncoderOf

This commit is contained in:
Tao Wen 2018-03-14 23:18:20 +08:00
parent 25fa392355
commit 39acec93e0

View File

@ -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