Documentation ¶
Index ¶
- Constants
- func InjectCodeFactroy(s *CodeFactroy)
- func LoadCodeFactroy() baseiface.ISingleton
- func MakeDi(dto *didto.DiDto) error
- type CodeFactroy
- func (self *CodeFactroy) CodeFactroyOption(opts ...CodeFactroyOption)
- func (cf *CodeFactroy) DecideTemlateFile() string
- func (cf *CodeFactroy) Make(dto *didto.DiDto) error
- func (cf *CodeFactroy) MakeDiOne(structInfo *didto.StructInfo) bool
- func (cf *CodeFactroy) MakeToParam()
- func (cf *CodeFactroy) ParseParams() (string, error)
- func (cf *CodeFactroy) Path() string
- func (cf *CodeFactroy) ReadTemplate() (string, error)
- func (cf *CodeFactroy) SetPath(outpath string)
- func (cf *CodeFactroy) StructFileName() string
- func (cf *CodeFactroy) WriteFile(filename string) error
- func (cf *CodeFactroy) WriteStructFile() error
- type CodeFactroyOption
Constants ¶
View Source
const ( VAR_KEY_FileName = "FileName" VAR_KEY_Author = "Author" VAR_KEY_Corp = "Corp" VAR_KEY_Now = "Now" )
@Title 文件名称: {{.FileName}}.go @Description 描述: 代码工厂服务
@Author 作者: {{.Author}} 时间({{.Now}}) @Update 作者: {{.Author}} 时间({{.Now}})
Variables ¶
This section is empty.
Functions ¶
func InjectCodeFactroy ¶
func InjectCodeFactroy(s *CodeFactroy)
func LoadCodeFactroy ¶
func LoadCodeFactroy() baseiface.ISingleton
Types ¶
type CodeFactroy ¶
type CodeFactroy struct { basedto.BaseEntity *didto.DiDto ExistNewStruct bool Params map[string]string Templatefile string Rootdir string // contains filtered or unexported fields }
func FindBeanCodeFactroy ¶
func FindBeanCodeFactroy() *CodeFactroy
func NewCodeFactroy ¶
func NewCodeFactroy() *CodeFactroy
func (*CodeFactroy) CodeFactroyOption ¶
func (self *CodeFactroy) CodeFactroyOption(opts ...CodeFactroyOption)
func (*CodeFactroy) DecideTemlateFile ¶
func (cf *CodeFactroy) DecideTemlateFile() string
func (*CodeFactroy) MakeDiOne ¶
func (cf *CodeFactroy) MakeDiOne(structInfo *didto.StructInfo) bool
func (*CodeFactroy) MakeToParam ¶
func (cf *CodeFactroy) MakeToParam()
func (*CodeFactroy) ParseParams ¶
func (cf *CodeFactroy) ParseParams() (string, error)
func (*CodeFactroy) Path ¶
func (cf *CodeFactroy) Path() string
func (*CodeFactroy) ReadTemplate ¶
func (cf *CodeFactroy) ReadTemplate() (string, error)
func (*CodeFactroy) SetPath ¶
func (cf *CodeFactroy) SetPath(outpath string)
func (*CodeFactroy) StructFileName ¶
func (cf *CodeFactroy) StructFileName() string
func (*CodeFactroy) WriteFile ¶
func (cf *CodeFactroy) WriteFile(filename string) error
func (*CodeFactroy) WriteStructFile ¶
func (cf *CodeFactroy) WriteStructFile() error
type CodeFactroyOption ¶
type CodeFactroyOption func(entity *CodeFactroy)
Click to show internal directories.
Click to hide internal directories.