You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-07-03 23:30:41 +02:00
gofmt
This commit is contained in:
@ -1,9 +1,9 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
|
||||||
"github.com/json-iterator/go"
|
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"github.com/json-iterator/go"
|
||||||
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Benchmark_encode_string_with_SetEscapeHTML(b *testing.B) {
|
func Benchmark_encode_string_with_SetEscapeHTML(b *testing.B) {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package jsoniter
|
package jsoniter
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"unsafe"
|
|
||||||
"io"
|
"io"
|
||||||
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
type numberLazyAny struct {
|
type numberLazyAny struct {
|
||||||
|
@ -25,7 +25,6 @@ func (cfg *frozenConfig) initCache() {
|
|||||||
cfg.encoderCache = sync.Map{}
|
cfg.encoderCache = sync.Map{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (cfg *frozenConfig) addDecoderToCache(cacheKey reflect.Type, decoder ValDecoder) {
|
func (cfg *frozenConfig) addDecoderToCache(cacheKey reflect.Type, decoder ValDecoder) {
|
||||||
cfg.decoderCache.Store(cacheKey, decoder)
|
cfg.decoderCache.Store(cacheKey, decoder)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user