- refactor DeleteSkuName
- fix bug in FlatMap(should recursively)
This commit is contained in:
@@ -281,6 +281,7 @@ func FlatMap(in map[string]interface{}) map[string]interface{} {
|
||||
maps := []map[string]interface{}{}
|
||||
for k, v := range in {
|
||||
if vMap, ok := v.(map[string]interface{}); ok {
|
||||
vMap = FlatMap(vMap)
|
||||
maps = append(maps, vMap)
|
||||
keys = append(keys, k)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user