func strings.Repeat
47 uses
strings (current package)
strings.go#L519: func Repeat(s string, count int) string {
github.com/aws/aws-sdk-go/aws/awsutil
prettify.go#L53: buf.WriteString(strings.Repeat(" ", indent+2))
prettify.go#L62: buf.WriteString("\n" + strings.Repeat(" ", indent) + "}")
prettify.go#L72: nl, id, id2 = "\n", strings.Repeat(" ", indent), strings.Repeat(" ", indent+2)
prettify.go#L89: buf.WriteString(strings.Repeat(" ", indent+2))
prettify.go#L98: buf.WriteString("\n" + strings.Repeat(" ", indent) + "}")
string_value.go#L37: buf.WriteString(strings.Repeat(" ", indent+2))
string_value.go#L49: buf.WriteString("\n" + strings.Repeat(" ", indent) + "}")
string_value.go#L53: nl, id, id2 = "\n", strings.Repeat(" ", indent), strings.Repeat(" ", indent+2)
string_value.go#L70: buf.WriteString(strings.Repeat(" ", indent+2))
string_value.go#L79: buf.WriteString("\n" + strings.Repeat(" ", indent) + "}")
github.com/evanw/esbuild/internal/bundler
linker.go#L2761: relDir = strings.Repeat("_.._/", dotDotCount) + relDir[dotDotCount*3:]
github.com/evanw/esbuild/internal/fs
fs_mock.go#L131: commonParent := strings.Repeat("../", strings.Count(base, "/")+1)
github.com/evanw/esbuild/internal/logger
logger.go#L729: strings.Repeat(" ", spacer),
logger.go#L868: return fmt.Sprintf(" %s%s │ ", strings.Repeat(" ", maxMargin-len(number)), number)
logger.go#L872: space := strings.Repeat(" ", maxMargin)
logger.go#L1081: indent := strings.Repeat(" ", estimateWidthInTerminal(textUpToLoc))
logger.go#L1159: indent = strings.Repeat(" ", estimateWidthInTerminal(lineText[:markerStart]))
logger.go#L1164: marker = strings.Repeat("~", estimateWidthInTerminal(lineText[markerStart:markerEnd]))
github.com/go-git/go-git/v5/plumbing/object
patch.go#L290: adds := strings.Repeat("+", int(math.Floor(addn/scaleFactor)))
patch.go#L291: dels := strings.Repeat("-", int(math.Floor(deln/scaleFactor)))
github.com/google/go-cmp/cmp
path.go#L133: ssPre = append(ssPre, pPre+strings.Repeat("*", numIndirect))
github.com/jmespath/go-jmespath
lexer.go#L48: return e.Expression + "\n" + strings.Repeat(" ", e.Offset) + "^"
parser.go#L56: spaces := strings.Repeat(" ", indent)
parser.go#L63: output += fmt.Sprintf("%svalue: %s\n", strings.Repeat(" ", nextIndent), converted.String())
parser.go#L65: output += fmt.Sprintf("%svalue: %#v\n", strings.Repeat(" ", nextIndent), node.value)
parser.go#L70: output += fmt.Sprintf("%schildren: {\n", strings.Repeat(" ", nextIndent))
github.com/kevinburke/ssh_config
config.go#L412: buf.WriteString(strings.Repeat(" ", int(h.leadingSpace)))
config.go#L470: line := fmt.Sprintf("%s%s%s%s", strings.Repeat(" ", int(k.leadingSpace)), k.Key, equals, k.Value)
config.go#L497: return fmt.Sprintf("%s#%s", strings.Repeat(" ", int(e.leadingSpace)), e.Comment)
config.go#L621: line := fmt.Sprintf("%sInclude%s%s", strings.Repeat(" ", int(inc.leadingSpace)), equals, strings.Join(inc.directives, " "))
github.com/Masterminds/squirrel
placeholder.go#L85: return strings.Repeat(",?", count)[1:]
github.com/prometheus/common/model
time.go#L145: p[1] = p[1] + strings.Repeat("0", prec)
github.com/yuin/goldmark/ast
ast.go#L440: indent := strings.Repeat(" ", level)
ast.go#L442: indent2 := strings.Repeat(" ", level+1)
block.go#L461: indent := strings.Repeat(" ", level)
block.go#L463: indent2 := strings.Repeat(" ", level+1)
inline.go#L155: fmt.Printf("%sText%s: \"%s\"\n", strings.Repeat(" ", level), fs, strings.TrimRight(string(n.Text(source)), "\n"))
inline.go#L270: fmt.Printf("%sString%s: \"%s\"\n", strings.Repeat(" ", level), fs, strings.TrimRight(string(n.Value), "\n"))
github.com/yuin/goldmark/extension/ast
table.go#L51: indent := strings.Repeat(" ", level)
table.go#L54: indent2 := strings.Repeat(" ", level+1)
github.com/yuin/goldmark/parser
delimiter.go#L64: fmt.Printf("%sDelimiter: \"%s\"\n", strings.Repeat(" ", level), string(d.Text(source)))
link.go#L42: fmt.Printf("%slinkLabelState: \"%s\"\n", strings.Repeat(" ", level), s.Text(source))
google.golang.org/protobuf/internal/descfmt
stringer.go#L302: return ":" + strings.Repeat(" ", 1+padding) // use non-breaking spaces (U+00a0)
stringer.go#L304: return ":" + strings.Repeat(" ", 1+padding) // use regular spaces (U+0020)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |