templates

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StructColumn

type StructColumn struct {
	Name       string
	Type       string
	Tag        string
	Comment    string
	IsShowBase string
}

type StructTemplate

type StructTemplate struct {
	// contains filtered or unexported fields
}

func NewStructTemplate

func NewStructTemplate() *StructTemplate

func (*StructTemplate) AssemblyColumns

func (t *StructTemplate) AssemblyColumns(tbColumns []*model.TableColumn) []*StructColumn

func (*StructTemplate) Generate

func (t *StructTemplate) Generate(packageName string, tableName string, tplColumns []*StructColumn, filePwd string, fileName string) error

type StructTemplateDB

type StructTemplateDB struct {
	TableName string
	Columns   []*StructColumn
}

type StructTemplateDBPackage

type StructTemplateDBPackage struct {
	PackageName string
	DB          StructTemplateDB
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL