Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AndString ¶
AndString concatenates a list of strings using commas and the word "and" before the last string.
Parameters:
- vals: The list of strings to concatenate.
Returns:
- string: The concatenated string.
func ArrayFormatter ¶ added in v0.3.8
ArrayFormatter formats a list of strings as an array.
Parameters:
- values: The list of strings to format.
Returns:
- string: The formatted array.
func DateStringer ¶
DateStringer prints the date in the format "1st January, 2006".
Parameters:
- date: The date to print.
Returns:
- string: The date in the format "1st January, 2006".
func OrString ¶
OrString concatenates a list of strings using commas and the word "or" before the last string.
Parameters:
- vals: The list of strings to concatenate.
Returns:
- string: The concatenated string.
func StringsJoiner ¶ added in v0.2.36
StringsJoiner joins a list of fmt.Stringer values using a separator.
Parameters:
- values: The list of fmt.Stringer values to join.
- sep: The separator to use when joining the strings.
Returns:
- string: The string representation of the values.
func TimeStringer ¶
TimeStringer prints the time in the format "3:04 PM".
Parameters:
- time: The time to print.
Returns:
- string: The time in the format "3:04 PM".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.