You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
190 B
Go
14 lines
190 B
Go
3 years ago
|
package util
|
||
|
|
||
|
type H map[string]interface{}
|
||
|
|
||
|
func (target H) Apply(sources ...H) H {
|
||
|
for _, source := range sources {
|
||
|
for k, v := range source {
|
||
|
target[k] = v
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return target
|
||
|
}
|