1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-11-27 13:34:49 +01:00
gojekyll/utils/maps.go
2017-07-09 16:17:20 -04:00

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
}