mirror of https://github.com/Xhofe/alist
12 lines
213 B
Go
12 lines
213 B
Go
|
package utils
|
||
|
|
||
|
func MergeMap(mObj ...map[string]interface{}) map[string]interface{} {
|
||
|
newObj := map[string]interface{}{}
|
||
|
for _, m := range mObj {
|
||
|
for k, v := range m {
|
||
|
newObj[k] = v
|
||
|
}
|
||
|
}
|
||
|
return newObj
|
||
|
}
|