MCPcopy Create free account
hub / github.com/cloudfoundry/cli / trim

Function trim

cf/terminal/table.go:337–339  ·  view source on GitHub ↗

trim is a helper to remove trailing whitespace from a string.

(s string)

Source from the content-addressed store, hash-verified

335
336// trim is a helper to remove trailing whitespace from a string.
337func trim(s string) string {
338 return strings.TrimRight(s, " \t")
339}
340
341// visibleSize returns the number of columns the string will cover
342// when displayed in the terminal. This is the number of runes,

Callers 3

calculateMaxSizeMethod · 0.85
printRowMethod · 0.85
printCellValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected