alist/pkg/utils/map.go

12 lines
213 B
Go
Raw Normal View History

2022-09-05 05:35:01 +00:00
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
}