Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColumnBaseGoType ¶
ColumnBaseGoType returns the non-nullable Go type for a column.
func ColumnGoType ¶
ColumnGoType returns the Go type string for a column.
func ColumnImport ¶
ColumnImport returns the import path needed for a column's Go type.
func PascalToSnake ¶
PascalToSnake converts PascalCase to snake_case. UserController → user_controller, CreateUser → create_user, HTTPServer → http_server.
func Pluralize ¶
Pluralize converts a singular lowercase word to its plural form. Handles common irregular plurals and English pluralization rules.
func SnakeToPascal ¶
SnakeToPascal converts snake_case to PascalCase, respecting common initialisms.
func TableToStructName ¶
TableToStructName converts a table name to a singular PascalCase Go struct name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.