MCPcopy Index your code
hub / github.com/kopia/kopia / insertHelpText

Function insertHelpText

cli/command_policy_edit.go:134–141  ·  view source on GitHub ↗
(s, lookFor, help string)

Source from the content-addressed store, hash-verified

132}
133
134func insertHelpText(s, lookFor, help string) string {
135 p := strings.Index(s, lookFor)
136 if p < 0 {
137 return s
138 }
139
140 return s[0:p] + help + s[p:]
141}

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected