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) FindGoFilesOfDir(dirPath string) error
- func (this *DiFactroy) FindSome(struname string) (*didto.FileInfoDto, bool)
- func (this *DiFactroy) MakeDi(dto *didto.DiDto) error
- func (this *DiFactroy) MakeDiAll() int
- func (this *DiFactroy) MakeDiAllForce(force bool, dirs ...string) int
- func (this *DiFactroy) MakeDiCur(dir string) int
- func (this *DiFactroy) MakeDiFile(file string)
- func (this *DiFactroy) MakeDiOne(structInfo *didto.StructInfo) bool
- func (this *DiFactroy) MakeDiOneForce(filterStru string, force bool) int
- func (this *DiFactroy) MakeDiStru(filterStru string) int
- func (this *DiFactroy) MakeDiStruInfos(structInfos []*didto.StructInfo, force bool) int
- func (this *DiFactroy) MakeSuite(filterStrus ...string) int
- func (this *DiFactroy) Parse(file string) *didto.FileInfoDto
- func (this *DiFactroy) ParseAll()
- func (this *DiFactroy) ParseAllOf(isall bool, dir string)
- func (this *DiFactroy) ParseAstTags(stru *didto.StructInfo, nodes *ast.File)
- 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) ParseOne(filterStru string)
- func (this *DiFactroy) ParseStruct(decl *ast.GenDecl, nodes *ast.File, pathfile string) *didto.StructInfo
- 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 `godicmd:` // contains filtered or unexported fields }
func NewDiFactroy ¶
func NewDiFactroy() *DiFactroy
func (*DiFactroy) ExistNewMethod ¶
func (*DiFactroy) FindBasePkg ¶
func (*DiFactroy) FindGoFiles ¶
func (*DiFactroy) FindGoFilesOfDir ¶
func (*DiFactroy) FindSome ¶
func (this *DiFactroy) FindSome(struname string) (*didto.FileInfoDto, bool)
func (*DiFactroy) MakeDiAllForce ¶
func (*DiFactroy) MakeDiFile ¶
func (*DiFactroy) MakeDiOneForce ¶
func (*DiFactroy) MakeDiStru ¶
func (*DiFactroy) MakeDiStruInfos ¶
func (this *DiFactroy) MakeDiStruInfos(structInfos []*didto.StructInfo, force bool) int
func (*DiFactroy) ParseAllOf ¶
func (*DiFactroy) ParseAstTags ¶
func (this *DiFactroy) ParseAstTags(stru *didto.StructInfo, nodes *ast.File)
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) 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 ¶
parse struct
Click to show internal directories.
Click to hide internal directories.