Documentation
¶
Overview ¶
Package packagescan implements the front-end to the packagescan analysis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpResultsByOS ¶
DumpResultsByOS creates a tabular representation of the output, printing fixed size columns for the package's presence in each of the target OS's, followed by the name of the package name. We use the platform name rather than 'X' in case the list was long and any headers scrolled off. We could also have used the first letter of the platform as a mnemonic. results is a map from platform name to a set of packages that import the target on that platform
func FindImporters ¶
func FindImporters(pkglist []*ssa.Package, target string, exact bool, rawfile io.WriteCloser) map[string]bool
FindImporters searches the list of packages (pkglist) for any imports of the target package or packages. If exact==true, it will compare the Name() of each imported package to the target. This is useful for packages like reflect and unsafe, where you only want exact matches. If exact==false, it will see if the Path() of each imported package begins with the target. This is useful for projects spanning multiple projects, such as github.com/aws/aws-sdk-go/