Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadDiDto ¶
func LoadDiDto() baseiface.ISingleton
func LoadFileInfoDto ¶
func LoadFileInfoDto() baseiface.ISingleton
func LoadStructInfo ¶
func LoadStructInfo() baseiface.ISingleton
Types ¶
type DiDto ¶
type DiDto struct { basedto.BaseEntity FullPkg string `json:"fullPkg"` ExistNewStruct bool `json:"ExistNewStruct"` NewStructName string `json:"NewStructName"` //in PkgName string `json:"pkg_name"` StructName string `json:"struct_name"` PathFile string `json:"pathFile"` //output OutPath string `json:"out_path"` OutFile string `json:"out_file"` ForceBuild bool `json:"force_build"` }
func FindBeanDiDto ¶
func FindBeanDiDto() *DiDto
type FileinfoDto ¶
type FileinfoDto struct { basedto.BaseEntity PathFile string `json:"path_file,omitempty"` FileContent string `json:"content,omitempty"` StructInfoMap map[string]*StructInfo `json:"struct_info_map,omitempty"` StructInfos []*StructInfo Funcs []string `json:"funcs"` Node *ast.File `json:"-"` }
func FindBeanFileInfoDto ¶
func FindBeanFileInfoDto() *FileinfoDto
func NewFileInfoDto ¶
func NewFileInfoDto() *FileinfoDto
func (*FileinfoDto) ExistNewFunc ¶
func (this *FileinfoDto) ExistNewFunc(Struname string) bool
type StructInfo ¶
type StructInfo struct { basedto.BaseEntity IsBaseEntiyStruct bool *DiDto MethodNames []string `json:"methodNameList,omitempty"` Fields []string //成员的成员 FieldsMap map[string]string }
func FindBeanStructInfo ¶
func FindBeanStructInfo() *StructInfo
func NewStructInfo ¶
func NewStructInfo() *StructInfo
func (*StructInfo) AddField ¶
func (s *StructInfo) AddField(fieldName string)
func (*StructInfo) AddMethodName ¶
func (s *StructInfo) AddMethodName(methodName string)
func (*StructInfo) CheckBaseEntity ¶
func (this *StructInfo) CheckBaseEntity() bool
func (*StructInfo) NewStruMethod ¶
func (this *StructInfo) NewStruMethod() string
func (*StructInfo) ParsePkgName ¶
func (s *StructInfo) ParsePkgName(rootdir, basepkg string)
Click to show internal directories.
Click to hide internal directories.