MCPcopy Create free account
hub / github.com/astercloud/aster / repeatStr

Function repeatStr

examples/recipe/main.go:324–332  ·  view source on GitHub ↗
(s string, n int)

Source from the content-addressed store, hash-verified

322}
323
324func repeatStr(s string, n int) string {
325 result := ""
326 var resultSb325 strings.Builder
327 for range n {
328 resultSb325.WriteString(s)
329 }
330 result += resultSb325.String()
331 return result
332}

Callers 5

demonstrateBasicRecipeFunction · 0.70
demonstrateMCPExtensionsFunction · 0.70
demonstrateParametersFunction · 0.70
demonstratePermissionsFunction · 0.70

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected