mirror of
https://github.com/json-iterator/go.git
synced 2025-06-06 22:36:25 +02:00
gofmt
This commit is contained in:
parent
55fc498d27
commit
0195110b5b
@ -46,7 +46,6 @@ func ExampleUnmarshal() {
|
||||
// [{Name:Platypus Order:Monotremata} {Name:Quoll Order:Dasyuromorphia}]
|
||||
}
|
||||
|
||||
|
||||
func ExampleMarshalWithBestPerformance() {
|
||||
type ColorGroup struct {
|
||||
ID int
|
||||
|
@ -1,11 +1,11 @@
|
||||
package jsoniter
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"io"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
"errors"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"encoding"
|
||||
"encoding/json"
|
||||
"reflect"
|
||||
"sort"
|
||||
"strconv"
|
||||
"unsafe"
|
||||
"sort"
|
||||
)
|
||||
|
||||
type mapDecoder struct {
|
||||
@ -151,7 +151,6 @@ func (encoder *sortKeysMapEncoder) encode(ptr unsafe.Pointer, stream *Stream) {
|
||||
realInterface := (*interface{})(unsafe.Pointer(&mapInterface))
|
||||
realVal := reflect.ValueOf(*realInterface)
|
||||
|
||||
|
||||
// Extract and sort the keys.
|
||||
var sv stringValues = realVal.MapKeys()
|
||||
sort.Sort(sv)
|
||||
|
@ -2,9 +2,9 @@ package jsoniter
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"github.com/json-iterator/go/require"
|
||||
"testing"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
func Test_true(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user