You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-24 23:16:47 +02:00
gofmt
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user