// --------------------- Implementation --------------------- func plural(input string) (result string) { result = inflect.Pluralize(input) if result == input { result += "s" } return }
func (m model) Plural() (result string) { result = inflect.Pluralize(m.Name) if result == m.Name { result += "s" } return }
func (t *Type) Plural() (result string) { result = inflect.Pluralize(t.Name) if result == t.Name { result += "s" } return }