Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelMethodTemplate ¶
type ModelMethodTemplate struct { PackageName string ModelName string ModelVariableName string Method methodtemplate.MethodTemplate // contains filtered or unexported fields }
func NewImplementorMethodTemplates ¶
func NewImplementorMethodTemplates(pkgName, implName string, method methodtemplate.MethodTemplate, path string) *ModelMethodTemplate
func (*ModelMethodTemplate) GenerateFile ¶
func (t *ModelMethodTemplate) GenerateFile(fileMgr *filemanager.FileManager)
type Template ¶
type Template struct { PackageName string ModelName string NewFuncName string Imports []string Attributes []string NewFuncParameters string VariableParameters []string Methods []models.Method // contains filtered or unexported fields }
func (*Template) GenerateFile ¶
func (t *Template) GenerateFile(fileMgr *filemanager.FileManager)
Click to show internal directories.
Click to hide internal directories.