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

Function transformService

transform/services.go:23–30  ·  view source on GitHub ↗
(data any, p tree.Path, ignoreParseError bool)

Source from the content-addressed store, hash-verified

21)
22
23func transformService(data any, p tree.Path, ignoreParseError bool) (any, error) {
24 switch value := data.(type) {
25 case map[string]any:
26 return transformMapping(value, p, ignoreParseError)
27 default:
28 return value, nil
29 }
30}
31
32func transformStringSliceToMap(data any, _ tree.Path, _ bool) (any, error) {
33 if slice, ok := data.([]any); ok {

Callers

nothing calls this directly

Calls 1

transformMappingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…