Explorar o código

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

Matt Bolt %!s(int64=4) %!d(string=hai) anos
pai
achega
fb5ef81e2b
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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