codefactroy

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MulanPSL-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func MakeDi

func MakeDi(dto *didto.DiDto) error

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) Make

func (cf *CodeFactroy) Make(dto *didto.DiDto) error

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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