MCPcopy Create free account
hub / github.com/cogentcore/core / Spaces

Function Spaces

base/indent/indent.go:37–39  ·  view source on GitHub ↗

Spaces returns a string of n*width spaces.

(n, width int)

Source from the content-addressed store, hash-verified

35
36// Spaces returns a string of n*width spaces.
37func Spaces(n, width int) string {
38 return strings.Repeat(" ", n*width)
39}
40
41// SpaceBytes returns a []byte of n*width spaces.
42func SpaceBytes(n, width int) []byte {

Callers 4

StringDocMethod · 0.92
tabsToSpacesLineMethod · 0.92
TestSpacesFunction · 0.85
StringFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestSpacesFunction · 0.68