فهرست منبع

Make sure we use the go-json NewEncoder and NewDecoder

Matt Bolt 4 سال پیش
والد
کامیت
ef744be6d6
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      pkg/util/json/json.go

+ 2 - 2
pkg/util/json/json.go

@@ -8,8 +8,8 @@ import (
 
 var Marshal = gojson.Marshal
 var Unmarshal = gojson.Unmarshal
-var NewEncoder = json.NewEncoder
-var NewDecoder = json.NewDecoder
+var NewEncoder = gojson.NewEncoder
+var NewDecoder = gojson.NewDecoder
 
 type Marshaler = json.Marshaler
 type Unmarshaler = json.Unmarshaler