MCPcopy Create free account
hub / github.com/compose-spec/compose-go / setDefaultsMapping

Function setDefaultsMapping

transform/defaults.go:88–97  ·  view source on GitHub ↗
(v map[string]any, p tree.Path)

Source from the content-addressed store, hash-verified

86}
87
88func setDefaultsMapping(v map[string]any, p tree.Path) (map[string]any, error) {
89 for k, e := range v {
90 t, err := setDefaults(e, p.Next(k))
91 if err != nil {
92 return nil, err
93 }
94 v[k] = t
95 }
96 return v, nil
97}

Callers 1

setDefaultsFunction · 0.85

Calls 2

setDefaultsFunction · 0.85
NextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…