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

Method appendValue

pkg/output/text_formatter.go:177–185  ·  view source on GitHub ↗
(b *bytes.Buffer, value any)

Source from the content-addressed store, hash-verified

175}
176
177func (f *TextFormatter) appendValue(b *bytes.Buffer, value any) {
178 stringVal, ok := value.(string)
179 if !ok {
180 stringVal = fmt.Sprint(value)
181 }
182
183 // No quoting here; Original does quoting of values and empty values
184 b.WriteString(stringVal)
185}
186
187// This is to not silently overwrite `time`, `msg` and `level` fields when
188// dumping it. If this code wasn't there doing:

Callers 3

FormatMethod · 0.95
printColoredMethod · 0.95
appendKeyValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected