Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Pluralize ¶
Pluralize returns the quantity then either the `singular` (fox) or `plural` (foxes) depending on that given `quantity` e.g. `Pluralize(2, "fox", "foxes")` returns "2 foxes"
Example ¶
fmt.Println(Pluralize(2, "fox", "foxes"))
Output: 2 foxes
func RoughDuration ¶ added in v1.0.0
RoughDuration returns a rough duration as a number of minutes, hours or days, for example "2 minutes", "11 days"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.