MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / getLine

Function getLine

testutil/ui.go:20–26  ·  view source on GitHub ↗
(row []string, maxLen map[int]int, padding int)

Source from the content-addressed store, hash-verified

18}
19
20func getLine(row []string, maxLen map[int]int, padding int) string {
21 var line string
22 for i := range row {
23 line = line + row[i] + strings.Repeat(" ", getSpaceCount(i, row, maxLen, padding))
24 }
25 return strings.TrimRightFunc(line, unicode.IsSpace)
26}
27
28func getSpaceCount(i int, row []string, maxLen map[int]int, padding int) int {
29 var count int

Callers 1

GetTableOutputLinesFunction · 0.85

Calls 1

getSpaceCountFunction · 0.85

Tested by

no test coverage detected