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

Function transformMapping

transform/canonical.go:119–128  ·  view source on GitHub ↗
(v map[string]any, p tree.Path, ignoreParseError bool)

Source from the content-addressed store, hash-verified

117}
118
119func transformMapping(v map[string]any, p tree.Path, ignoreParseError bool) (map[string]any, error) {
120 for k, e := range v {
121 t, err := transform(e, p.Next(k), ignoreParseError)
122 if err != nil {
123 return nil, err
124 }
125 v[k] = t
126 }
127 return v, nil
128}
129
130func transformStringOrX(data any, _ tree.Path, _ bool) (any, error) {
131 switch v := data.(type) {

Callers 5

transformFunction · 0.85
transformMaybeExternalFunction · 0.85
transformBuildFunction · 0.85
transformExtendsFunction · 0.85
transformServiceFunction · 0.85

Calls 2

transformFunction · 0.85
NextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…