difactroy

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 22 Imported by: 0

Documentation

Index

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 FindBeanDiFactroy

func FindBeanDiFactroy() *DiFactroy

FindBeanDiFactroy

func NewDiFactroy

func NewDiFactroy() *DiFactroy

func (*DiFactroy) ExistNewMethod

func (this *DiFactroy) ExistNewMethod(nodes *ast.File, functionName string) bool

func (*DiFactroy) FindBasePkg

func (this *DiFactroy) FindBasePkg() string

func (*DiFactroy) FindFile

func (this *DiFactroy) FindFile(file string) *didto.FileInfoDto

func (*DiFactroy) FindGoFiles

func (this *DiFactroy) FindGoFiles() error

func (*DiFactroy) FindGoFilesOfDir

func (this *DiFactroy) FindGoFilesOfDir(dirPath string) error

func (*DiFactroy) FindSome

func (this *DiFactroy) FindSome(struname string) (*didto.FileInfoDto, bool)

func (*DiFactroy) MakeDi

func (this *DiFactroy) MakeDi(dto *didto.DiDto) error

func (*DiFactroy) MakeDiAll

func (this *DiFactroy) MakeDiAll() int

func (*DiFactroy) MakeDiAllForce

func (this *DiFactroy) MakeDiAllForce(force bool, dirs ...string) int

func (*DiFactroy) MakeDiCur

func (this *DiFactroy) MakeDiCur(dir string) int

func (*DiFactroy) MakeDiFile

func (this *DiFactroy) MakeDiFile(file string)

func (*DiFactroy) MakeDiOne

func (this *DiFactroy) MakeDiOne(structInfo *didto.StructInfo) bool

func (*DiFactroy) MakeDiOneForce

func (this *DiFactroy) MakeDiOneForce(filterStru string, force bool) int

func (*DiFactroy) MakeDiStru

func (this *DiFactroy) MakeDiStru(filterStru string) int

func (*DiFactroy) MakeDiStruInfos

func (this *DiFactroy) MakeDiStruInfos(structInfos []*didto.StructInfo, force bool) int

func (*DiFactroy) MakeSuite

func (this *DiFactroy) MakeSuite(filterStrus ...string) int

func (*DiFactroy) Parse

func (this *DiFactroy) Parse(file string) *didto.FileInfoDto

func (*DiFactroy) ParseAll

func (this *DiFactroy) ParseAll()

func (*DiFactroy) ParseAllOf

func (this *DiFactroy) ParseAllOf(isall bool, dir string)

func (*DiFactroy) ParseAstTags

func (this *DiFactroy) ParseAstTags(stru *didto.StructInfo, nodes *ast.File)

func (*DiFactroy) ParseDir

func (this *DiFactroy) ParseDir(pathf string)

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 (this *DiFactroy) ParseMethods(decl *ast.FuncDecl)

func (*DiFactroy) ParseOne

func (this *DiFactroy) ParseOne(filterStru string)

func (*DiFactroy) ParseStruct

func (this *DiFactroy) ParseStruct(decl *ast.GenDecl, nodes *ast.File, pathfile string) *didto.StructInfo

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

func (this *ParseFields) Parse(field *ast.Field) *didto.DiInject

func (*ParseFields) ParseArrayType

func (this *ParseFields) ParseArrayType(field *ast.Field, di *didto.DiInject) bool

func (*ParseFields) ParseIdent

func (this *ParseFields) ParseIdent(field *ast.Field, di *didto.DiInject) bool

func (*ParseFields) ParseMapType

func (this *ParseFields) ParseMapType(field *ast.Field, di *didto.DiInject) bool

func (*ParseFields) ParseName

func (this *ParseFields) ParseName(field *ast.Field, di *didto.DiInject) bool

func (*ParseFields) ParseNoName

func (this *ParseFields) ParseNoName(field *ast.Field, di *didto.DiInject)

func (*ParseFields) ParseSelectorExpr

func (this *ParseFields) ParseSelectorExpr(field *ast.Field, di *didto.DiInject) bool

func (*ParseFields) ParseStarExpr

func (this *ParseFields) ParseStarExpr(field *ast.Field, di *didto.DiInject) bool

parse struct

Jump to

Keyboard shortcuts

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