mirror of
https://github.com/danog/gojekyll.git
synced 2024-11-26 23:14:40 +01:00
14 lines
312 B
Go
14 lines
312 B
Go
package utils
|
|
|
|
// MergeStringMaps creates a new variable map that merges its arguments,
|
|
// from first to last.
|
|
func MergeStringMaps(ms ...map[string]interface{}) map[string]interface{} {
|
|
result := map[string]interface{}{}
|
|
for _, m := range ms {
|
|
for k, v := range m {
|
|
result[k] = v
|
|
}
|
|
}
|
|
return result
|
|
}
|