internal

package
v0.0.0-...-bbd393d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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 PrintDirect

func PrintDirect(in *Summary)

PrintDirect will output the direct deps

func PrintFullList

func PrintFullList(in *Summary)

PrintFullList of all packages and their dependents

func PrintTest

func PrintTest(in *Summary)

PrintTest will output the std lib deps

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL