MCPcopy Index your code
hub / github.com/voidint/g / wrapstring

Function wrapstring

cli/cli.go:191–200  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

189}
190
191func wrapstring(str string) string {
192 if str == "" {
193 return str
194 }
195 words := strings.Fields(str)
196 if len(words) > 0 {
197 words[0] = cases.Title(language.English).String(words[0])
198 }
199 return fmt.Sprintf("[g] %s", strings.Join(words, " "))
200}

Callers 4

uninstallFunction · 0.85
errstringFunction · 0.85
useFunction · 0.85
Test_wrapstringFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_wrapstringFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…