MCPcopy Create free account
hub / github.com/Unpackerr/unpackerr / makeComposeDefined

Method makeComposeDefined

init/config/compose.go:89–99  ·  view source on GitHub ↗
(prefix string, defs Defs, order []section, bare bool)

Source from the content-addressed store, hash-verified

87}
88
89func (h *Header) makeComposeDefined(prefix string, defs Defs, order []section, bare bool) string {
90 var buf bytes.Buffer
91
92 for _, section := range order {
93 newHeader := createDefinedSection(defs[section], h, section)
94 // Make a brand new section and print it.
95 buf.WriteString(newHeader.makeCompose(prefix, bare))
96 }
97
98 return buf.String()
99}
100
101func (p *Param) Compose(prefix string) string {
102 val := p.Example

Callers 1

createComposeFunction · 0.80

Calls 3

createDefinedSectionFunction · 0.85
makeComposeMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected