Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModelHasSoftDelete ¶
ModelHasSoftDelete checks if a struct has a db:"deleted_at" field
func ParseDBTag ¶
func ToSnakeCase ¶
Types ¶
type StructFieldInfo ¶
type StructMapping ¶
type StructMapping struct { FieldsByColumn map[string]StructFieldInfo PrimaryColumn string AutoIncrement bool VersionColumn string }
func StructMapper ¶
func StructMapper(t reflect.Type) StructMapping
Click to show internal directories.
Click to hide internal directories.