Browse Source

Update jsoniter.go (#1500)

add newencoder to fix compile error for -tags=jsoniter
junfengye 7 years ago
parent
commit
0ebd42d0a9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      json/jsoniter.go

+ 1 - 0
json/jsoniter.go

@@ -13,4 +13,5 @@ var (
 	Marshal       = json.Marshal
 	MarshalIndent = json.MarshalIndent
 	NewDecoder    = json.NewDecoder
+	NewEncoder    = json.NewEncoder
 )