Преглед изворни кода

Revert back to using the encoding/json pkg for NewEncoder and NewDecoder. These weren't exactly compatible

Matt Bolt пре 4 година
родитељ
комит
fb5ef81e2b
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      pkg/util/json/json.go

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

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