Documentation ¶
Index ¶
- func InjectDiFactroy(s *DiFactroy)
- func LoadDiFactroy() baseiface.ISingleton
- type DiFactroy
- func (this *DiFactroy) ExistNewMethod(nodes *ast.File, functionName string) bool
- func (this *DiFactroy) FindBasePkg() string
- func (this *DiFactroy) FindFile(file string) *didto.FileInfoDto
- func (this *DiFactroy) FindGoFiles() error
- func (this *DiFactroy) FindSome(struname string) (*didto.FileInfoDto, bool)
- func (this *DiFactroy) ListDiAll() int
- func (this *DiFactroy) MakeDiAll() int
- func (this *DiFactroy) MakeDiAllForce(force bool) int
- func (this *DiFactroy) MakeDiFile(file string)
- func (this *DiFactroy) MakeDiStru(filterStru string) int
- func (this *DiFactroy) MakeDiStruInfos(structInfos []*didto.StructInfo, force bool) int
- func (this *DiFactroy) MakeOption() int
- func (this *DiFactroy) MakeSuite(stru ...string) int
- func (this *DiFactroy) Parse(file string) *didto.FileInfoDto
- func (this *DiFactroy) ParseAll()
- func (this *DiFactroy) ParseDir(pathf string)
- func (this *DiFactroy) ParseFuncs(FileInf *didto.FileInfoDto, nodes *ast.File)
- func (this *DiFactroy) ParseImports(FileInf *didto.FileInfoDto, nodes *ast.File)
- func (this *DiFactroy) ParseMethods(decl *ast.FuncDecl)
- func (this *DiFactroy) ParseStruct(decl *ast.GenDecl, nodes *ast.File, pathfile string) *didto.StructInfo
- func (this *DiFactroy) ParseTags(stru *didto.StructInfo, nodes *ast.File)
- func (this *DiFactroy) Save2JSONFile()
- func (this *DiFactroy) SaveFile2JSONFile()
- func (this *DiFactroy) SetImport2StructInfos(fileinfo *didto.FileInfoDto)
- type ParseFields
- func (this *ParseFields) Parse(field *ast.Field) *didto.DiInject
- func (this *ParseFields) ParseArrayType(field *ast.Field, di *didto.DiInject) bool
- func (this *ParseFields) ParseIdent(field *ast.Field, di *didto.DiInject) bool
- func (this *ParseFields) ParseMapType(field *ast.Field, di *didto.DiInject) bool
- func (this *ParseFields) ParseName(field *ast.Field, di *didto.DiInject) bool
- func (this *ParseFields) ParseNoName(field *ast.Field, di *didto.DiInject)
- func (this *ParseFields) ParseSelectorExpr(field *ast.Field, di *didto.DiInject) bool
- func (this *ParseFields) ParseStarExpr(field *ast.Field, di *didto.DiInject) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectDiFactroy ¶
func InjectDiFactroy(s *DiFactroy)
func LoadDiFactroy ¶
func LoadDiFactroy() baseiface.ISingleton
Types ¶
type DiFactroy ¶
type DiFactroy struct { basedto.BaseEntitySingle BasePkg string Rootdir string FileInfoDtos []*didto.FileInfoDto StructInfos map[string]*didto.StructInfo Config *ichubconfig.IchubConfig `godi:"auto"` // contains filtered or unexported fields }
func FindBeanDiFactroy ¶
func FindBeanDiFactroy() *DiFactroy
func NewDiFactroy ¶
func NewDiFactroy() *DiFactroy
func (*DiFactroy) ExistNewMethod ¶
func (*DiFactroy) FindBasePkg ¶
func (*DiFactroy) FindGoFiles ¶
func (*DiFactroy) FindSome ¶
func (this *DiFactroy) FindSome(struname string) (*didto.FileInfoDto, bool)
func (*DiFactroy) MakeDiAllForce ¶
func (*DiFactroy) MakeDiFile ¶
func (*DiFactroy) MakeDiStru ¶
func (*DiFactroy) MakeDiStruInfos ¶
func (this *DiFactroy) MakeDiStruInfos(structInfos []*didto.StructInfo, force bool) int
func (*DiFactroy) MakeOption ¶ added in v1.2.4
func (*DiFactroy) ParseFuncs ¶
func (this *DiFactroy) ParseFuncs(FileInf *didto.FileInfoDto, nodes *ast.File)
func (*DiFactroy) ParseImports ¶
func (this *DiFactroy) ParseImports(FileInf *didto.FileInfoDto, nodes *ast.File)
func (*DiFactroy) ParseMethods ¶
func (*DiFactroy) ParseStruct ¶
func (*DiFactroy) ParseTags ¶
func (this *DiFactroy) ParseTags(stru *didto.StructInfo, nodes *ast.File)
func (*DiFactroy) Save2JSONFile ¶
func (this *DiFactroy) Save2JSONFile()
func (*DiFactroy) SaveFile2JSONFile ¶
func (this *DiFactroy) SaveFile2JSONFile()
func (*DiFactroy) SetImport2StructInfos ¶
func (this *DiFactroy) SetImport2StructInfos(fileinfo *didto.FileInfoDto)
type ParseFields ¶
type ParseFields struct { }
func NewParseFields ¶
func NewParseFields() *ParseFields
func (*ParseFields) ParseArrayType ¶
func (*ParseFields) ParseIdent ¶
func (*ParseFields) ParseMapType ¶
func (*ParseFields) ParseNoName ¶
func (this *ParseFields) ParseNoName(field *ast.Field, di *didto.DiInject)
func (*ParseFields) ParseSelectorExpr ¶
func (*ParseFields) ParseStarExpr ¶
godi struct
Click to show internal directories.
Click to hide internal directories.