This commit is contained in:
gazebo
2019-03-28 08:54:46 +08:00
parent ea13a07fea
commit 27f22b8e9a
3 changed files with 9 additions and 2 deletions

View File

@@ -178,7 +178,7 @@ func TestTrimBlanChar(t *testing.T) {
func TestStruct2MapByJson(t *testing.T) {
mapData := Struct2MapByJson(&struct {
IntData int `structs:"dataInt"`
StrData string `json:"dataStr"`
StrData string `json:"-"`
}{
IntData: 1,
StrData: "2",