typo(mapping): fix typo for key (#2548)
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
|||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
"github.com/zeromicro/go-zero/core/stringx"
|
"github.com/zeromicro/go-zero/core/stringx"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -539,7 +540,7 @@ func TestUnmarshalStringMapFromUnsupportedType(t *testing.T) {
|
|||||||
func TestUnmarshalStringMapFromNotSettableValue(t *testing.T) {
|
func TestUnmarshalStringMapFromNotSettableValue(t *testing.T) {
|
||||||
var v struct {
|
var v struct {
|
||||||
sort map[string]string `key:"sort"`
|
sort map[string]string `key:"sort"`
|
||||||
psort *map[string]string `key:"sort"`
|
psort *map[string]string `key:"psort"`
|
||||||
}
|
}
|
||||||
m := map[string]interface{}{
|
m := map[string]interface{}{
|
||||||
"sort": `{"value":"ascend","emptyStr":""}`,
|
"sort": `{"value":"ascend","emptyStr":""}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user