mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
fix: add doc for func MergeMaps
Signed-off-by: lubingtan <bingtanlu@gmail.com>
This commit is contained in:
parent
3d84e00ce7
commit
fb7221bc9a
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue