mirror of
https://github.com/rancher/norman.git
synced 2025-07-19 17:50:31 +00:00
Special handling for endpoints plural name
This commit is contained in:
parent
432219d447
commit
faf2f35bfe
@ -7,6 +7,10 @@ func GuessPluralName(name string) string {
|
||||
return name
|
||||
}
|
||||
|
||||
if strings.EqualFold(name, "Endpoints") {
|
||||
return name
|
||||
}
|
||||
|
||||
if suffix(name, "s") || suffix(name, "ch") || suffix(name, "x") {
|
||||
return name + "es"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user