MCPcopy
hub / github.com/docker/compose / trim

Function trim

cmd/compose/top_test.go:322–329  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

320}
321
322func trim(s string) string {
323 var out bytes.Buffer
324 for line := range strings.SplitSeq(strings.TrimSpace(s), "\n") {
325 out.WriteString(strings.TrimSpace(line))
326 out.WriteRune('\n')
327 }
328 return out.String()
329}

Callers 2

top_test.goFile · 0.85
TestRunTopCoreFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected