Documentation ¶
Index ¶
- type Dependency
- type DependencyList
- func (d *DependencyList) Aggregate() Packages
- func (d *DependencyList) Files(pkg *Package) []*File
- func (d *DependencyList) List() []*Dependency
- func (d *DependencyList) Methods(obj *Object) []*Function
- func (d DependencyList) Objects(file *File) []*Object
- func (d *DependencyList) String() string
- func (d *DependencyList) TopologicalSort() *DependencyList
- type File
- type Function
- type Interface
- type Object
- type Package
- type Packages
- type Project
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type Dependency struct { FromPackage *Package FromFile *File FromObject *Object FromFunc *Function ToPackage *Package ToFile *File ToObject *Object ToFunc *Function }
func NewDependency ¶
func (*Dependency) String ¶
func (d *Dependency) String() string
type DependencyList ¶
type DependencyList struct {
// contains filtered or unexported fields
}
func NewDependencyList ¶
func NewDependencyList(pkgs Packages) *DependencyList
func (*DependencyList) Aggregate ¶
func (d *DependencyList) Aggregate() Packages
func (*DependencyList) Files ¶
func (d *DependencyList) Files(pkg *Package) []*File
func (*DependencyList) List ¶
func (d *DependencyList) List() []*Dependency
func (*DependencyList) Methods ¶
func (d *DependencyList) Methods(obj *Object) []*Function
func (DependencyList) Objects ¶
func (d DependencyList) Objects(file *File) []*Object
func (*DependencyList) String ¶
func (d *DependencyList) String() string
func (*DependencyList) TopologicalSort ¶
func (d *DependencyList) TopologicalSort() *DependencyList
type File ¶
type File struct { Name string Dir string PackageName string Objects []*Object Interfaces []*Interface Funcs []*Function // contains filtered or unexported fields }
func (*File) AnalyzeGenDecls ¶
type Object ¶
type Object struct { Name string Type string Pos token.Pos Methods []*Function ImplementInterface *Interface // contains filtered or unexported fields }
func (*Object) IsInterface ¶
type Packages ¶
type Packages []*Package
func (Packages) Analyze ¶
func (p Packages) Analyze() (*DependencyList, error)
func (Packages) FindPackageByPath ¶
func (Packages) FindReciverDeclarationByField ¶
Click to show internal directories.
Click to hide internal directories.