MCPcopy
hub / github.com/kopia/kopia / indentMultilineString

Function indentMultilineString

cli/show_utils.go:111–120  ·  view source on GitHub ↗
(l, prefix string)

Source from the content-addressed store, hash-verified

109}
110
111func indentMultilineString(l, prefix string) string {
112 var lines []string
113
114 s := bufio.NewScanner(strings.NewReader(l))
115 for s.Scan() {
116 lines = append(lines, prefix+s.Text())
117 }
118
119 return strings.Join(lines, "\n")
120}

Callers 1

appendActionCommandRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected