MCPcopy
hub / github.com/cortexlabs/cortex / MergeStrMapsString

Function MergeStrMapsString

pkg/lib/maps/string.go:39–47  ·  view source on GitHub ↗
(maps ...map[string]string)

Source from the content-addressed store, hash-verified

37}
38
39func MergeStrMapsString(maps ...map[string]string) map[string]string {
40 merged := map[string]string{}
41 for _, m := range maps {
42 for k, v := range m {
43 merged[k] = v
44 }
45 }
46 return merged
47}
48
49func StrMapsEqualString(m1, m2 map[string]string) bool {
50 if len(m1) != len(m2) {

Callers 1

ErrorFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected