Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Repeat ¶
func Repeat(s string, n int, separator gostringsseparator.Separator) string
Repeat returns a new string consisting of the input string `s` repeated `n` times, separated by the specified separator.
Parameters:
s - the string to repeat n - the number of times to repeat the string separator - the separator to insert between repetitions
Returns:
A single string with `s` repeated `n` times, separated by `separator`.
func RepeatAsArray ¶
RepeatAsArray returns a pointer to a slice containing the input string `s` repeated `n` times.
Parameters:
s - the string to repeat n - the number of times to repeat the string
Returns:
A pointer to a slice of strings, each element being `s`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.