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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintChild

func PrintChild(in *Summary)

PrintChild will output the child deps

func PrintDirect

func PrintDirect(in *Summary)

PrintDirect will output the direct deps

func PrintExternal

func PrintExternal(in *Summary)

PrintExternal will output the external deps

func PrintStdLib

func PrintStdLib(in *Summary)

PrintStdLib will output the std lib deps

func PrintSummary

func PrintSummary(in *Summary)

PrintSummary will print a summary of dependencies

func PrintSummaryCSV

func PrintSummaryCSV(in *Summary)

PrintSummaryCSV will print a summary of dependencies to CSV

func PrintVendored

func PrintVendored(in *Summary)

PrintVendored will output the vendored deps

Types

type Deps

type Deps struct {
	BasePath        string   `json:"ImportPath"`
	DirectImports   []string `json:"Imports"`
	IndirectImports []string `json:"Deps"`
}

Deps is the JSON format returned by `go list --json`

func GetDependencyList

func GetDependencyList(directory string) *Deps

GetDependencyList returns the dependency list of given package (directory)

type Summary

type Summary struct {
	Pkg string
	// contains filtered or unexported fields
}

Summary is a dependency summary

func BuildSummary

func BuildSummary(deps *Deps) *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