yq/merge.go
kenjones 6980be3800 Feature: Adds merge command
Adds merge command for merging multiple yaml files together.

Resolves: #31
2017-09-23 14:45:59 +10:00

13 lines
206 B
Go

package main
import (
"github.com/imdario/mergo"
)
func merge(dst, src interface{}, overwrite bool) error {
if overwrite {
return mergo.MergeWithOverwrite(dst, src)
}
return mergo.Merge(dst, src)
}