Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelToSnake ¶
CamelToSnake converts camelCase to snake_case
func GetFKeyName ¶
GetFKeyName can be used to determine the foreign-key name based on a set of input fields. Note that this function does not guarantee or check for the existence of the foreign-key; it simply provides the name that would have been used for the given parameter values. i: Model{} ft: From Table rt: Reference Table ff: From Field rf: Reference Field
func GetTableName ¶
func GetTableName(i interface{}) string
GetTableName determines the db table-name based on interface{} i
Types ¶
Click to show internal directories.
Click to hide internal directories.