Skip to content

Commit 2dc0031

Browse files
committed
#152 gofmt
1 parent cdbd2ed commit 2dc0031

7 files changed

+8
-8
lines changed

feature_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type Config struct {
1717
EscapeHTML bool
1818
SortMapKeys bool
1919
UseNumber bool
20-
TagKey string
20+
TagKey string
2121
}
2222

2323
type frozenConfig struct {

feature_json_number.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ func CastJsonNumber(val interface{}) (string, bool) {
1212
return string(typedVal), true
1313
}
1414
return "", false
15-
}
15+
}

feature_reflect_object.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"io"
66
"reflect"
7-
"unsafe"
87
"strings"
8+
"unsafe"
99
)
1010

1111
func encoderOfStruct(cfg *frozenConfig, typ reflect.Type) (ValEncoder, error) {

feature_reflect_struct_decoder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"io"
66
"reflect"
7-
"unsafe"
87
"strings"
8+
"unsafe"
99
)
1010

1111
func createStructDecoder(typ reflect.Type, fields map[string]*structFieldDecoder) (ValDecoder, error) {

jsoniter_customize_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,4 +313,4 @@ func Test_recursive_empty_interface_customization(t *testing.T) {
313313
should := require.New(t)
314314
Unmarshal([]byte("[100]"), &obj)
315315
should.Equal([]interface{}{int64(100)}, obj)
316-
}
316+
}

jsoniter_invalid_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func Test_chan(t *testing.T) {
103103
t.Skip("do not support chan")
104104

105105
type TestObject struct {
106-
MyChan chan bool
106+
MyChan chan bool
107107
MyField int
108108
}
109109

@@ -112,4 +112,4 @@ func Test_chan(t *testing.T) {
112112
str, err := json.Marshal(obj)
113113
should.Nil(err)
114114
should.Equal(``, str)
115-
}
115+
}

jsoniter_struct_decoder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package jsoniter
22

33
import (
4-
"testing"
54
"github.com/stretchr/testify/require"
5+
"testing"
66
)
77

88
func Test_decode_one_field_struct(t *testing.T) {

0 commit comments

Comments
 (0)