Documentation
¶
Index ¶
- Variables
- func Backtick(s string) string
- func GetInsertArgs(m StructTmplData) string
- func GetInsertFields(fields []TmplField) string
- func GetInsertValues(fields []TmplField) string
- func GetScanFields(m StructTmplData) template.HTML
- func GetSelectFields(fields []TmplField) string
- func GetUpdateArgs(m StructTmplData) template.HTML
- func GetUpdateValues(m StructTmplData) string
- func GetUpsertArgs(m StructTmplData) string
- func GetUpsertFields(fields []TmplField) string
- func GetUpsertOnDuplicate(m StructTmplData) string
- func GetUpsertValues(fields []TmplField) string
- type StructTmplData
- type TmplField
- type TmplStruct
- type TmplStructs
Constants ¶
This section is empty.
Variables ¶
View Source
var FuncMap = template.FuncMap{ "select_fields": GetSelectFields, "insert_fields": GetInsertFields, "insert_values": GetInsertValues, "insert_args": GetInsertArgs, "scan_fields": GetScanFields, "update_args": GetUpdateArgs, "update_values": GetUpdateValues, "upsert_fields": GetUpsertFields, "upsert_values": GetUpsertValues, "upsert_on_duplicate": GetUpsertOnDuplicate, "upsert_args": GetUpsertArgs, "backtick": Backtick, }
Functions ¶
func GetInsertArgs ¶
func GetInsertArgs(m StructTmplData) string
func GetInsertFields ¶
func GetInsertValues ¶
func GetScanFields ¶
func GetScanFields(m StructTmplData) template.HTML
func GetSelectFields ¶
func GetUpdateArgs ¶
func GetUpdateArgs(m StructTmplData) template.HTML
func GetUpdateValues ¶
func GetUpdateValues(m StructTmplData) string
func GetUpsertArgs ¶
func GetUpsertArgs(m StructTmplData) string
func GetUpsertFields ¶
func GetUpsertOnDuplicate ¶
func GetUpsertOnDuplicate(m StructTmplData) string
func GetUpsertValues ¶
Types ¶
type StructTmplData ¶
type StructTmplData struct { Model TmplStruct Receiver string PackageName string }
StructTmplData defines the top level struct data to pass to the models
Click to show internal directories.
Click to hide internal directories.