mirror of
https://github.com/Xevion/banner.git
synced 2025-12-10 02:06:33 -06:00
Add pluralization, use comma printing for search interaction, field count warning
This commit is contained in:
@@ -150,6 +150,15 @@ func Plural(n int) string {
|
||||
return "s"
|
||||
}
|
||||
|
||||
// Plurale is a simple helper function that returns an empty string if n is 1, and "ess" otherwise.
|
||||
// This is for words that end in "es" when plural.
|
||||
func Plurale(n int) string {
|
||||
if n == 1 {
|
||||
return ""
|
||||
}
|
||||
return "es"
|
||||
}
|
||||
|
||||
func WeekdaysToString(days map[time.Weekday]bool) string {
|
||||
// If no days are present
|
||||
numDays := len(days)
|
||||
|
||||
Reference in New Issue
Block a user