difactroy

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: 24 Imported by: 1

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 `godi:"auto"`
	// contains filtered or unexported fields
}

func FindBeanDiFactroy

func FindBeanDiFactroy() *DiFactroy

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

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

func (*DiFactroy) ListDiAll added in v1.3.0

func (this *DiFactroy) ListDiAll() int

func (*DiFactroy) MakeDiAll

func (this *DiFactroy) MakeDiAll() int

func (*DiFactroy) MakeDiAllForce

func (this *DiFactroy) MakeDiAllForce(force bool) int

func (*DiFactroy) MakeDiFile

func (this *DiFactroy) MakeDiFile(file string)

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) MakeOption added in v1.2.4

func (this *DiFactroy) MakeOption() int

func (*DiFactroy) MakeSuite added in v1.2.3

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

func (*DiFactroy) Parse

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

func (*DiFactroy) ParseAll

func (this *DiFactroy) ParseAll()

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

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

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

godi struct

Jump to

Keyboard shortcuts

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