b43f9c63d8
* Database driver config & flag complete * Table flag complete, will use all tables if non specified
7 lines
262 B
Smarty
7 lines
262 B
Smarty
{{- $tableName := .TableName -}}
|
|
type {{makeGoColName $tableName}} struct {
|
|
{{range $key, $value := .TableData -}}
|
|
{{makeGoColName $value.ColName}} {{$value.ColType}} `db:"{{makeDBColName $tableName $value.ColName}}",json:"{{$value.ColName}}"`
|
|
{{end -}}
|
|
}
|