mirror of
https://github.com/rancher/norman.git
synced 2025-07-22 11:02:19 +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
|
return name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.EqualFold(name, "Endpoints") {
|
||||||
|
return name
|
||||||
|
}
|
||||||
|
|
||||||
if suffix(name, "s") || suffix(name, "ch") || suffix(name, "x") {
|
if suffix(name, "s") || suffix(name, "ch") || suffix(name, "x") {
|
||||||
return name + "es"
|
return name + "es"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user