- 重新实现utils.Struct2FlatMap

This commit is contained in:
gazebo
2019-09-24 15:23:27 +08:00
parent 3ae979e48b
commit b02230ec2d
3 changed files with 42 additions and 37 deletions

View File

@@ -175,17 +175,6 @@ func TestTrimBlanChar(t *testing.T) {
}
}
func TestStruct2MapByJson(t *testing.T) {
mapData := Struct2MapByJson(&struct {
IntData int `structs:"dataInt"`
StrData string `json:"-"`
}{
IntData: 1,
StrData: "2",
})
t.Log(mapData)
}
func TestLimitUTF8StringLen(t *testing.T) {
for _, v := range [][]interface{}{
[]interface{}{