1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-12 22:47:42 +02:00

suport encode map[interface{}]interface{}

This commit is contained in:
Tao Wen
2018-03-15 21:28:16 +08:00
parent 39acec93e0
commit ca39e5af3e
8 changed files with 46 additions and 15 deletions

View File

@ -6,7 +6,7 @@ func init() {
[]interface{}{"hello"},
nilSlice,
&nilSlice,
selectedMarshalCase{[]byte{1,2,3}},
[]byte{1, 2, 3},
)
unmarshalCases = append(unmarshalCases, unmarshalCase{
ptr: (*[]string)(nil),
@ -20,6 +20,5 @@ func init() {
}, unmarshalCase{
ptr: (*[]byte)(nil),
input: `"aGVsbG8="`,
selected: true,
})
}

View File

@ -4,8 +4,8 @@ import (
"encoding/json"
"fmt"
"github.com/json-iterator/go"
"github.com/stretchr/testify/require"
"github.com/modern-go/reflect2"
"github.com/stretchr/testify/require"
"testing"
)