Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintCSVList ¶
func PrintCSVList(in *Summary)
PrintFullList of all packages and their dependents
func PrintFullList ¶
func PrintFullList(in *Summary)
PrintFullList of all packages and their dependents
Types ¶
type Deps ¶
type Deps struct { BasePath string `json:"ImportPath"` DirectImports []string `json:"Imports"` TestImports []string `json:"TestImports"` }
Deps is the JSON format returned by `go list --json`
type MasterList ¶
type MasterList struct {
Pkgs []*Deps `json:"pkgs"`
}
MasterList is the hack around the `go list --json` format
func GetDependantsList ¶
func GetDependantsList(searchDir string) *MasterList
GetDependantsList returns the list packages that depend on a given package (directory)
type Summary ¶
type Summary struct {
// contains filtered or unexported fields
}
Summary is a dependency summary
func BuildSummary ¶
func BuildSummary(focusPackage string, masterList *MasterList) *Summary
BuildSummary will summarize dependencies by type
Click to show internal directories.
Click to hide internal directories.