// --------------------- Implementation ---------------------
func plural(input string) (result string) {
	result = inflect.Pluralize(input)
	if result == input {
		result += "s"
	}
	return
}
Example #2
0
func (m model) Plural() (result string) {
	result = inflect.Pluralize(m.Name)
	if result == m.Name {
		result += "s"
	}
	return
}
Example #3
0
File: type.go Project: hogedigo/gen
func (t *Type) Plural() (result string) {
	result = inflect.Pluralize(t.Name)
	if result == t.Name {
		result += "s"
	}
	return
}