commit 024cbd81efc4632394c4c7422263c5f7e09ec8cc
parent ecd6b1ca207d813e38de9fa71439b4861adcb35d
Author: francoispqt <francois@parquet.ninja>
Date: Tue, 21 Aug 2018 12:15:44 +0800
linting
Diffstat:
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/decode_array_test.go b/decode_array_test.go
@@ -421,7 +421,7 @@ func TestDecoderChannelOfObjectsBasic(t *testing.T) {
assert.Nil(t, err, "Err must be nil")
ct := 0
l := len(testChan)
- for _ = range testChan {
+ for range testChan {
ct++
if ct == l {
break
diff --git a/encode_number_uint.go b/encode_number_uint.go
@@ -2,7 +2,7 @@ package gojay
import "strconv"
-// EncodeUint32 encodes an int64 to JSON
+// EncodeUint64 encodes an int64 to JSON
func (enc *Encoder) EncodeUint64(n uint64) error {
if enc.isPooled == 1 {
panic(InvalidUsagePooledEncoderError("Invalid usage of pooled encoder"))
diff --git a/encode_time.go b/encode_time.go
@@ -4,6 +4,7 @@ import (
"time"
)
+// EncodeTime encodes a *time.Time to JSON with the given format
func (enc *Encoder) EncodeTime(t *time.Time, format string) error {
if enc.isPooled == 1 {
panic(InvalidUsagePooledEncoderError("Invalid usage of pooled encoder"))