MCPcopy Create free account
hub / github.com/ddev/ddev / appendKeyValue

Method appendKeyValue

pkg/output/text_formatter.go:168–175  ·  view source on GitHub ↗
(b *bytes.Buffer, key string, value any)

Source from the content-addressed store, hash-verified

166}
167
168func (f *TextFormatter) appendKeyValue(b *bytes.Buffer, key string, value any) {
169 if b.Len() > 0 {
170 b.WriteByte(' ')
171 }
172 b.WriteString(key)
173 b.WriteByte('=')
174 f.appendValue(b, value)
175}
176
177func (f *TextFormatter) appendValue(b *bytes.Buffer, value any) {
178 stringVal, ok := value.(string)

Callers 1

FormatMethod · 0.95

Calls 1

appendValueMethod · 0.95

Tested by

no test coverage detected