Convert a SQL name to a Go name.
(sqlName string)
| 326 | |
| 327 | // Convert a SQL name to a Go name. |
| 328 | func goName(sqlName string) string { |
| 329 | // This can definitely be done better. |
| 330 | goName := strings.Replace(sqlName, "_", " ", -1) |
| 331 | goName = strings.Replace(goName, ".", " ", -1) |
| 332 | goName = strings.Title(goName) |
| 333 | goName = strings.Replace(goName, " ", "", -1) |
| 334 | |
| 335 | return goName |
| 336 | } |
no outgoing calls
no test coverage detected