Browse Source

Let defaultJsonHandler be a json handler interface

xormplus 6 năm trước cách đây
mục cha
commit
8b49d2dd32
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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