github.com/verrazzano/verrazzano@v1.7.0/pkg/vzmap/vzmap.go (about)

     1  // Copyright (c) 2022, Oracle and/or its affiliates.
     2  // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  package vzmap
     5  
     6  // UnionStringMaps returns the union of m1 and m2. Key collisions favor m2.
     7  func UnionStringMaps(m1, m2 map[string]string) map[string]string {
     8  	u := map[string]string{}
     9  	for k, v := range m1 {
    10  		u[k] = v
    11  	}
    12  	for k, v := range m2 {
    13  		u[k] = v
    14  	}
    15  	return u
    16  }