mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-13 22:38:04 +00:00
11 lines
202 B
Go
11 lines
202 B
Go
package main
|
|
|
|
import "gopkg.in/imdario/mergo.v0"
|
|
|
|
func merge(dst, src interface{}, overwrite bool) error {
|
|
if overwrite {
|
|
return mergo.MergeWithOverwrite(dst, src)
|
|
}
|
|
return mergo.Merge(dst, src)
|
|
}
|