Documentation ¶
Index ¶
- func InjectDimetaFactroy(s *DimetaFactroy)
- func LoadDimetaFactroy() baseiface.ISingleton
- type DimetaFactroy
- func (this *DimetaFactroy) ExistNewMethod(nodes *ast.File, functionName string) bool
- func (this *DimetaFactroy) FindBasePkg() string
- func (this *DimetaFactroy) FindFile(file string) *dimeta.FileInfoDto
- func (this *DimetaFactroy) FindGoFile(stru string) *dimeta.FileInfoDto
- func (this *DimetaFactroy) FindGoFiles() error
- func (this *DimetaFactroy) FindSome(struname string) (*dimeta.FileInfoDto, bool)
- func (this *DimetaFactroy) GoastAll()
- func (this *DimetaFactroy) GoastOne(stru string) (*dimeta.FileInfoDto, bool)
- func (this *DimetaFactroy) Parse(file string) *dimeta.FileInfoDto
- func (this *DimetaFactroy) ParseDir(pathf string)
- func (this *DimetaFactroy) ParseFuncs(FileInf *dimeta.FileInfoDto, nodes *ast.File)
- func (this *DimetaFactroy) ParseImports(FileInf *dimeta.FileInfoDto, nodes *ast.File)
- func (this *DimetaFactroy) ParseMethods(decl *ast.FuncDecl)
- func (this *DimetaFactroy) ParseStruct(decl *ast.GenDecl, nodes *ast.File, pathfile string) *dimeta.StructInfo
- func (this *DimetaFactroy) ParseTags(stru *dimeta.StructInfo, nodes *ast.File)
- func (this *DimetaFactroy) Save2JSONFile()
- func (this *DimetaFactroy) SaveFile2JSONFile()
- func (this *DimetaFactroy) SetImport2StructInfos(fileinfo *dimeta.FileInfoDto)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectDimetaFactroy ¶
func InjectDimetaFactroy(s *DimetaFactroy)
func LoadDimetaFactroy ¶
func LoadDimetaFactroy() baseiface.ISingleton
Types ¶
type DimetaFactroy ¶
type DimetaFactroy struct { basedto.BaseEntitySingle metafile.MetaFile `json:"-"` BasePkg string Rootdir string FileInfoDtos []*dimeta.FileInfoDto StructInfos map[string]*dimeta.StructInfo Config *ichubconfig.IchubConfig `di:` // contains filtered or unexported fields }
func NewDiFactroy ¶
func NewDiFactroy() *DimetaFactroy
func (*DimetaFactroy) ExistNewMethod ¶
func (this *DimetaFactroy) ExistNewMethod(nodes *ast.File, functionName string) bool
func (*DimetaFactroy) FindBasePkg ¶
func (this *DimetaFactroy) FindBasePkg() string
func (*DimetaFactroy) FindFile ¶
func (this *DimetaFactroy) FindFile(file string) *dimeta.FileInfoDto
func (*DimetaFactroy) FindGoFile ¶
func (this *DimetaFactroy) FindGoFile(stru string) *dimeta.FileInfoDto
func (*DimetaFactroy) FindGoFiles ¶
func (this *DimetaFactroy) FindGoFiles() error
func (*DimetaFactroy) FindSome ¶
func (this *DimetaFactroy) FindSome(struname string) (*dimeta.FileInfoDto, bool)
func (*DimetaFactroy) GoastAll ¶
func (this *DimetaFactroy) GoastAll()
func (*DimetaFactroy) GoastOne ¶
func (this *DimetaFactroy) GoastOne(stru string) (*dimeta.FileInfoDto, bool)
func (*DimetaFactroy) Parse ¶
func (this *DimetaFactroy) Parse(file string) *dimeta.FileInfoDto
func (*DimetaFactroy) ParseDir ¶
func (this *DimetaFactroy) ParseDir(pathf string)
func (*DimetaFactroy) ParseFuncs ¶
func (this *DimetaFactroy) ParseFuncs(FileInf *dimeta.FileInfoDto, nodes *ast.File)
func (*DimetaFactroy) ParseImports ¶
func (this *DimetaFactroy) ParseImports(FileInf *dimeta.FileInfoDto, nodes *ast.File)
func (*DimetaFactroy) ParseMethods ¶
func (this *DimetaFactroy) ParseMethods(decl *ast.FuncDecl)
func (*DimetaFactroy) ParseStruct ¶
func (this *DimetaFactroy) ParseStruct(decl *ast.GenDecl, nodes *ast.File, pathfile string) *dimeta.StructInfo
func (*DimetaFactroy) ParseTags ¶
func (this *DimetaFactroy) ParseTags(stru *dimeta.StructInfo, nodes *ast.File)
func (*DimetaFactroy) Save2JSONFile ¶
func (this *DimetaFactroy) Save2JSONFile()
func (*DimetaFactroy) SaveFile2JSONFile ¶
func (this *DimetaFactroy) SaveFile2JSONFile()
func (*DimetaFactroy) SetImport2StructInfos ¶
func (this *DimetaFactroy) SetImport2StructInfos(fileinfo *dimeta.FileInfoDto)
Click to show internal directories.
Click to hide internal directories.