MCPcopy Index your code
hub / github.com/tidwall/sjson / appendRepeat

Function appendRepeat

sjson.go:179–184  ·  view source on GitHub ↗

appendRepeat repeats string "n" times and appends to buf.

(buf []byte, s string, n int)

Source from the content-addressed store, hash-verified

177
178// appendRepeat repeats string "n" times and appends to buf.
179func appendRepeat(buf []byte, s string, n int) []byte {
180 for i := 0; i < n; i++ {
181 buf = append(buf, s...)
182 }
183 return buf
184}
185
186// trim does a rip trim
187func trim(s string) string {

Callers 2

appendBuildFunction · 0.85
appendRawPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…