Versions in this module Expand all Collapse all v0 v0.4.2 Jun 27, 2025 Changes in this version type TypeParam + Key string + type TypePkgInfo struct + Children []*TypePkgInfo + CurrentPkg string + FullName string + Generic bool + Imports []*Import + ModPkg string + Name string + PkgName string + PkgPath string + PkgType constants.PackageType + Pointer bool + Slice bool + Valid bool + func NewTypePkgInfo(modPkg string, currentPkg string, imports []*Import) *TypePkgInfo v0.4.1 Jun 22, 2025 v0.4.0 Jun 21, 2025 Changes in this version + func CopySliceWithFilter[T IElem[T]](src []T, filter func(T) bool) []T + func CopySlice[T IElem[T]](src []T) []T + func SetDeepClone(deep bool) + type Comment struct + AttrType constants.AttrType + AttrValue string + Content string + CustomAttr string + Index int + IsSelf bool + Op bool + func OfComment(index int, content string, selfName string) *Comment + func (c *Comment) Clone() *Comment + func (c *Comment) GetWithoutSelf(name string) string + func (c *Comment) IsHttpMethod() bool + func (c *Comment) String() string + type Const = Variable + type Context struct + Imports []*Import + Package *Package + Proj *Project + type Enum struct + Comment []*Comment + Doc []*Comment + ElemType constants.ElemType + Enums []*EnumItem + Index int + Iota bool + Name string + Private bool + Type string + TypeName string + func (e *Enum) Clone() *Enum + func (e *Enum) String() string + type EnumItem struct + Comment []*Comment + Doc []*Comment + Index int + Name string + Private bool + Type string + Value any + func (e *EnumItem) Clone() *EnumItem + func (e *EnumItem) String() string + type Field struct + Comment []*Comment + Doc []*Comment + Generic bool + Index int + Name string + Package *Package + Parent bool + Pointer bool + Private bool + Slice bool + Struct *Struct + Tag string + Type string + TypeName string + TypeParam []*TypeParam + func (f *Field) Clone() *Field + func (f *Field) GetTag() reflect.StructTag + func (f *Field) GetTagByName(name string) string + func (f *Field) HasTag() bool + func (f *Field) IsTop() bool + func (f *Field) String() string + type File struct + Comment []*Comment + Const []*Const + Function []*Function + Import []*Import + Interface []*Interface + Key string + KeyHash string + Name string + Package *Package + Struct []*Struct + Variable []*Variable + func (f *File) Clone() *File + func (f *File) FindStruct(keyHash string) *Struct + func (f *File) IsMainPackage() bool + func (f *File) String() string + type Function struct + Doc []*Comment + ElemType constants.ElemType + Generic bool + Index int + Key string + KeyHash string + Name string + Package *Package + Param []*Param + Private bool + Receiver *Receiver + Result []*Param + TypeName string + TypeParam []*TypeParam + func (f *Function) Clone() *Function + func (f *Function) GetAttrValue(attr constants.AttrType) string + func (f *Function) GetAttrs() []*Comment + func (f *Function) GetCustomAttrs() []*Comment + func (f *Function) GetHttpMethodAttrs() []*Comment + func (f *Function) GetRValue() reflect.Value + func (f *Function) GetValue() any + func (f *Function) HasAttr(attr constants.AttrType) bool + func (f *Function) HasAttrs() bool + func (f *Function) IsOp() bool + func (f *Function) SetRValue(t reflect.Value) + func (f *Function) SetValue(t any) + func (f *Function) String() string + func (f *Function) VisitParams(handler func(param *Param)) + func (f *Function) VisitResults(handler func(param *Param)) + type IElem interface + Clone func() T + String func() string + type Import struct + Alias string + Ignore bool + Name string + Path string + type Interface struct + Doc []*Comment + ElemType constants.ElemType + Function []*Function + Index int + Name string + Param []*Param + Result []*Param + TypeName string + TypeParam []*TypeParam + func (i *Interface) Clone() *Interface + func (i *Interface) String() string + type Package struct + FileName string + FilePath string + Name string + Path string + Type constants.PackageType + func (p *Package) Clone() *Package + func (p *Package) IsThis() bool + func (p *Package) String() string + type Param struct + ElemType constants.ElemType + Generic bool + Index int + Name string + Package *Package + Pointer bool + Slice bool + Struct *Struct + Type string + TypeName string + TypeParam []*TypeParam + func (p *Param) Clone() *Param + func (p *Param) GetRType() reflect.Type + func (p *Param) SetRType(t reflect.Type) + func (p *Param) String() string + type PkgType struct + IsGeneric bool + IsPtr bool + IsSlice bool + PkgName string + PkgPath string + PkgType constants.PackageType + TypeName string + type Project struct + BaseDir string + FileMap map[string]*File + Generator string + ModName string + ModPath string + ModPkg string + ModVersion string + SdkPath string + Timestamp int64 + Version string + func (p *Project) AddFile(f *File) + func (p *Project) AfterParseProj() + func (p *Project) FindStruct(keyHash string) *Struct + func (p *Project) Merge(files map[string]*File) + func (p *Project) Read(path string) error + func (p *Project) Write(fileName string) error + type Receiver struct + ElemType constants.ElemType + Generic bool + Name string + Pointer bool + Struct *Struct + Type string + TypeName string + TypeParam []*TypeParam + func (r *Receiver) Clone() *Receiver + func (r *Receiver) String() string + type Struct struct + Comment []*Comment + Doc []*Comment + ElemType constants.ElemType + Enum *Enum + Field []*Field + Generic bool + Index int + Key string + KeyHash string + Method []*Function + Name string + Package *Package + Private bool + Top bool + Type string + TypeName string + TypeParam []*TypeParam + func (s *Struct) Clone() *Struct + func (s *Struct) CloneFull() *Struct + func (s *Struct) GetAttr() constants.AttrType + func (s *Struct) GetAttrValue(attr constants.AttrType) string + func (s *Struct) GetAttrs() []*Comment + func (s *Struct) GetCustomAttrs() []*Comment + func (s *Struct) GetRType() reflect.Type + func (s *Struct) GetRValue() reflect.Value + func (s *Struct) GetValue() any + func (s *Struct) HasAttr(attr constants.AttrType) bool + func (s *Struct) HasCustomAttr(attr string) bool + func (s *Struct) HasParamAttr() bool + func (s *Struct) IsEnum() bool + func (s *Struct) IsTop() bool + func (s *Struct) SetRType(t reflect.Type) + func (s *Struct) SetRValue(r reflect.Value) + func (s *Struct) SetValue(v any) + func (s *Struct) String() string + func (s *Struct) VisitFields(filter func(f *Field) bool, handler func(f *Field)) + func (s *Struct) VisitMethods(filter func(f *Function) bool, handler func(f *Function)) + type TypeParam struct + ElemType constants.ElemType + Index int + Package *Package + Pointer bool + Slice bool + Struct *Struct + Type string + TypeInterface string + TypeName string + func (t *TypeParam) Clone() *TypeParam + func (t *TypeParam) CloneTiny() *TypeParam + func (t *TypeParam) String() string + type Variable struct + Comment []*Comment + Doc []*Comment + ElemType constants.ElemType + Index int + Iota bool + Name string + Package *Package + Struct *Struct + Type string + TypeName string + Value any + func (v *Variable) Clone() *Variable + func (v *Variable) String() string