1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-12-02 15:27:47 +01:00
gojekyll/utils/maps.go

14 lines
312 B
Go
Raw Normal View History

2017-07-09 22:17:20 +02:00
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
}