From dd978f3585c7b8bffdab059cd793868dd929a792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A0=E6=B5=A9=E7=95=85?= Date: Wed, 10 Apr 2019 20:03:05 +0800 Subject: [PATCH] Let defaultJsonHandler be a json handler interface. --- json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json.go b/json.go index e3d41a51..fdb6ce56 100644 --- a/json.go +++ b/json.go @@ -14,7 +14,7 @@ type JSONInterface interface { var ( // DefaultJSONHandler default json handler - DefaultJSONHandler = StdJSON{} + DefaultJSONHandler JSONInterface = StdJSON{} ) // StdJSON implements JSONInterface via encoding/json