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

Function repeatStr

examples/config-paths/main.go:133–141  ·  view source on GitHub ↗
(s string, n int)

Source from the content-addressed store, hash-verified

131}
132
133func repeatStr(s string, n int) string {
134 result := ""
135 var resultSb134 strings.Builder
136 for i := 0; i < n; i++ {
137 resultSb134.WriteString(s)
138 }
139 result += resultSb134.String()
140 return result
141}

Callers 3

demonstrateStandardPathsFunction · 0.70
demonstrateEnsureDirFunction · 0.70

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected