mirror of
https://github.com/taigrr/yq
synced 2025-01-18 04:53:17 -08:00
13 lines
206 B
Go
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)
|
|
}
|