Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnglishJoin ¶
EnglishJoin joins a slice of strings with commas and the "and" conjugation before the final item. The Oxford comma can optionally be applied.
Example:
str := EnglishJoin([]string{"meow", "purr", "raow"}, true) fmt.Println(str) // meow, purr, and raow
func SpokenLanguageJoin ¶
SpokenLangaugeJoin joins a slice of strings with commas and a conjuction before the final item. You may specify the language with Language.
If you are using English and need the Oxford Comma, use EnglishJoin.
Example:
str := SpokenLanguageJoin([]string{"eins", "zwei", "drei"}, DE) fmt.Println(str) // eins, zwei und drei
Types ¶
Click to show internal directories.
Click to hide internal directories.