Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinLines ¶
JoinLines joins each lines of the given string by replacing the newlines by a single space.
func Prepend ¶
Prepend prefixes each lines of a string with the given prefix. It can be used to indent or quote (> ) a paragraph, for example.
func RemoveDuplicates ¶
RemoveDuplicates keeps only unique strings in the source.
func SplitLines ¶
SplitLines splits a string by the newlines character in a portable way Using only `strings.Split(s, "\n")` doesn't work on Windows.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.