(srcStr string, str string)
| 385 | } |
| 386 | |
| 387 | func customEndOfLetterToLower(srcStr string, str string) string { |
| 388 | l := len(str) - len(srcStr) |
| 389 | if l == 1 { |
| 390 | if str[len(str)-1] == 'S' { |
| 391 | return str[:len(str)-1] + "s" |
| 392 | } |
| 393 | } else if l == 2 { |
| 394 | if str[len(str)-2:] == "ES" { |
| 395 | return str[:len(str)-2] + "es" |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | return str |
| 400 | } |
| 401 | |
| 402 | func getHandlerGoType(field *tmplField) string { |
| 403 | var goType = field.GoType |
no outgoing calls