commit 72314a566cd6141b7e6dac6792ec146936c5708f
parent 3f900d1d4a211409bcdd40519df716994c088097
Author: francoispqt <francois@parquet.ninja>
Date: Sun, 14 Oct 2018 01:31:25 +0800
remove logs in decode_interface
Diffstat:
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/decode_interface.go b/decode_interface.go
@@ -2,10 +2,7 @@ package gojay
// TODO @afiune for now we are using the standard json unmarshaling but in
// the future it would be great to implement one here inside this repo
-import (
- "encoding/json"
- "log"
-)
+import "encoding/json"
// DecodeInterface reads the next JSON-encoded value from its input and stores it in the value pointed to by i.
//
@@ -31,7 +28,6 @@ func (dec *Decoder) decodeInterface(i *interface{}) error {
}
object := dec.data[start:end]
- log.Print(string(object))
if err = json.Unmarshal(object, i); err != nil {
return err
}
@@ -43,7 +39,6 @@ func (dec *Decoder) decodeInterface(i *interface{}) error {
// @afiune Maybe return the type as well?
func (dec *Decoder) getObject() (start int, end int, err error) {
// start cursor
- log.Print(string(dec.data[dec.cursor:]))
for ; dec.cursor < dec.length || dec.read(); dec.cursor++ {
switch dec.data[dec.cursor] {
case ' ', '\n', '\t', '\r', ',':