Documentation ¶
Overview ¶
Package text provides functions similar to strings.Join, but based on writers as opposed to strings
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Join ¶
Join writes the elements of elem into writer, seperated by sep. Returns the number of runes written and a nil error.
It is like strings.Join, but writes into a writer instead of allocating a strings.Builder.
func Repeat ¶
Repeat writes count instances of s into w. It returns the number of runes written and a nil error. When count would cause an overflow, calls panic().
It is similar to strings.Repeat, but writes into an existing builder without allocating a new one.
When s is empty or count <= 0, no instances of s are written.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.