Versions in this module Expand all Collapse all v0 v0.0.3 Feb 23, 2023 Changes in this version + type BaseInfo struct + func (b *BaseInfo) FilePaths() []string + func (b *BaseInfo) Name() string + type InterfaceInfo struct + func (i *InterfaceInfo) ExcludeTokens(methods []string) + func (i *InterfaceInfo) GetImplements() []*StructInfo + func (i *InterfaceInfo) IsIncludeInterface(name string) bool + func (i *InterfaceInfo) Print() + func (i *InterfaceInfo) Tokens() + type MethodInfo struct + func (m *MethodInfo) Equal(t *MethodInfo) bool + func (m *MethodInfo) Print() + type PackageParser struct + func NewPackageParser(s *Scanner, curPack string, curDir string, astPack *ast.Package) *PackageParser + func (p *PackageParser) HandleFieldListForInterface(fields *ast.FieldList, f func(value string, namesLen int)) + func (p *PackageParser) HandleFuncType(funcType *ast.FuncType, methodInfo *MethodInfo) + func (p *PackageParser) Parse() + func (p *PackageParser) ParseFile(fileFullPath string, astFile *ast.File) + type PostParser interface + Post func(structs map[string]*StructInfo, interfaces map[string]*InterfaceInfo) + type PostParserFunc func(currentName string, innerName string, structs map[string]*StructInfo, ...) + type Scanner struct + func New(p string, r string) *Scanner + func (s *Scanner) DisableImplementRelation() + func (s *Scanner) FindInterfaceImplements(interfaceFullName string, newMethod string) + func (s *Scanner) GetAllInterface() []string + func (s *Scanner) GetInterface(name string) *InterfaceInfo + func (s *Scanner) GetLineFunc(current int) func(i int, l *progress.Line) + func (s *Scanner) Print() + func (s *Scanner) Start(dir string, excludeDir []string) + func (s *Scanner) SubModule(sub *Scanner, fullInterfaceName string, method string) + type StructInfo struct + func (s *StructInfo) CanIgnoreImplement(info *InterfaceInfo) bool + func (s *StructInfo) HasImplementInterface(i *InterfaceInfo) bool + func (s *StructInfo) MethodReceiver() (receiverName string, receiverType string) + func (s *StructInfo) Print() + func (s *StructInfo) Tokens() + type WrapperFunc struct + CurrentName string + InnerName string + PostFunc PostParserFunc + func (w *WrapperFunc) Post(structs map[string]*StructInfo, interfaces map[string]*InterfaceInfo)