Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTypes ¶ added in v0.2.0
func ExtractTypes(pkg *packages.Package) map[string]*StructDecl
ExtractTypes extracts types information from a package.
Types ¶
type AstSchema ¶
type AstSchema struct { ModulePath string Packages map[string]Dependencies }
AstSchema is a simpler presentation of the ast of a project.
type Dep ¶
type Dep struct { PackageName string DependencyName string VarName string Funcs []string External bool }
Dep represent one dependency injected.
type Dependencies ¶
type Dependencies map[string]Dependency
Dependencies contains all the dependencies of a package.
type Dependency ¶
type Dependency struct { Methods []string Comment string Imports []Import Deps map[string][]Dep ExternalDeps map[string][]Dep }
Dependency represent a type that has been identified as a dependency.
type StructDecl ¶ added in v0.2.0
type StructDecl struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.