fix: add doc for func MergeMaps

Signed-off-by: lubingtan <bingtanlu@gmail.com>
pull/13655/head
lubingtan 7 months ago
parent 3d84e00ce7
commit fb7221bc9a

@ -231,6 +231,8 @@ func LoadValues(data io.Reader) (map[string]interface{}, error) {
return values, nil
}
// MergeMaps merges two maps. If a key exists in both maps, the value from b will be used.
// If the value is a map, the maps will be merged recursively.
func MergeMaps(a, b map[string]interface{}) map[string]interface{} {
out := make(map[string]interface{}, len(a))
for k, v := range a {

Loading…
Cancel
Save