|
@@ -78,6 +78,21 @@ func Id(s string) string {
|
|
|
return s[0:index] + "Id"
|
|
|
}
|
|
|
|
|
|
+ if strings.HasSuffix(s, "IDs") {
|
|
|
+ index := strings.LastIndex(s, "IDs")
|
|
|
+ return s[0:index] + "Ids"
|
|
|
+ }
|
|
|
+
|
|
|
+ if strings.HasSuffix(s, "ids") {
|
|
|
+ index := strings.LastIndex(s, "ids")
|
|
|
+ return s[0:index] + "Ids"
|
|
|
+ }
|
|
|
+
|
|
|
+ if strings.HasSuffix(s, "iDs") {
|
|
|
+ index := strings.LastIndex(s, "iDs")
|
|
|
+ return s[0:index] + "Ids"
|
|
|
+ }
|
|
|
+
|
|
|
return s
|
|
|
}
|
|
|
|
|
@@ -97,6 +112,21 @@ func ID(s string) string {
|
|
|
return s[0:index] + "ID"
|
|
|
}
|
|
|
|
|
|
+ if strings.HasSuffix(s, "Ids") {
|
|
|
+ index := strings.LastIndex(s, "Ids")
|
|
|
+ return s[0:index] + "IDs"
|
|
|
+ }
|
|
|
+
|
|
|
+ if strings.HasSuffix(s, "ids") {
|
|
|
+ index := strings.LastIndex(s, "ids")
|
|
|
+ return s[0:index] + "IDs"
|
|
|
+ }
|
|
|
+
|
|
|
+ if strings.HasSuffix(s, "iDs") {
|
|
|
+ index := strings.LastIndex(s, "iDs")
|
|
|
+ return s[0:index] + "IDs"
|
|
|
+ }
|
|
|
+
|
|
|
return s
|
|
|
}
|
|
|
|
|
@@ -116,6 +146,21 @@ func id(s string) string {
|
|
|
return s[0:index] + "id"
|
|
|
}
|
|
|
|
|
|
+ if strings.HasSuffix(s, "Ids") {
|
|
|
+ index := strings.LastIndex(s, "Ids")
|
|
|
+ return s[0:index] + "ids"
|
|
|
+ }
|
|
|
+
|
|
|
+ if strings.HasSuffix(s, "IDs") {
|
|
|
+ index := strings.LastIndex(s, "IDs")
|
|
|
+ return s[0:index] + "ids"
|
|
|
+ }
|
|
|
+
|
|
|
+ if strings.HasSuffix(s, "iDs") {
|
|
|
+ index := strings.LastIndex(s, "iDs")
|
|
|
+ return s[0:index] + "ids"
|
|
|
+ }
|
|
|
+
|
|
|
return s
|
|
|
}
|
|
|
|