Tao Wen 7 years ago
parent
commit
7990317be5

+ 2 - 2
benchmarks/encode_string_test.go

@@ -1,9 +1,9 @@
 package test
 
 import (
-	"testing"
-	"github.com/json-iterator/go"
 	"bytes"
+	"github.com/json-iterator/go"
+	"testing"
 )
 
 func Benchmark_encode_string_with_SetEscapeHTML(b *testing.B) {

+ 1 - 1
feature_any_number.go

@@ -1,8 +1,8 @@
 package jsoniter
 
 import (
-	"unsafe"
 	"io"
+	"unsafe"
 )
 
 type numberLazyAny struct {

+ 1 - 2
feature_config_with_sync_map.go

@@ -25,7 +25,6 @@ func (cfg *frozenConfig) initCache() {
 	cfg.encoderCache = sync.Map{}
 }
 
-
 func (cfg *frozenConfig) addDecoderToCache(cacheKey reflect.Type, decoder ValDecoder) {
 	cfg.decoderCache.Store(cacheKey, decoder)
 }
@@ -62,4 +61,4 @@ func getFrozenConfigFromCache(cfg Config) *frozenConfig {
 
 func addFrozenConfigToCache(cfg Config, frozenConfig *frozenConfig) {
 	cfgCache.Store(cfg, frozenConfig)
-}
+}

+ 1 - 1
jsoniter_object_test.go

@@ -169,7 +169,7 @@ func Test_nested_field_omit_empty(t *testing.T) {
 		F2 string `json:",omitempty"`
 	}
 	s1 := &S1{
-		//F1: "abc",
+	//F1: "abc",
 	}
 	s2 := &S2{
 		S1: s1,