浏览代码

Let defaultJsonHandler be a json handler interface

xormplus 6 年之前
父节点
当前提交
8b49d2dd32
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      json.go

+ 1 - 1
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