From 39acec93e05e5ba9d785d21d99608a7e4da16e3e Mon Sep 17 00:00:00 2001 From: Tao Wen Date: Wed, 14 Mar 2018 23:18:20 +0800 Subject: [PATCH] expose DecoderOf and EncoderOf --- config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.go b/config.go index 7fc9767..b712c83 100644 --- a/config.go +++ b/config.go @@ -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