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

Method getCasterForPath

interpolation/interpolation.go:130–137  ·  view source on GitHub ↗
(path tree.Path)

Source from the content-addressed store, hash-verified

128}
129
130func (o Options) getCasterForPath(path tree.Path) (Cast, bool) {
131 for pattern, caster := range o.TypeCastMapping {
132 if path.Matches(pattern) {
133 return caster, true
134 }
135 }
136 return nil, false
137}

Callers 1

recursiveInterpolateFunction · 0.80

Calls 1

MatchesMethod · 0.80

Tested by

no test coverage detected