Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindImportPaths ¶
FindImportPaths returns a slice of slices indicating the import paths from one package to another.
func FindImporters ¶
FindImporters returns a slice of package names indicating which packages under go.skia.org/infra/... directly import the given package.
Types ¶
type Package ¶
type Package struct { Dir string `json:",omitempty"` // directory containing package sources ImportPath string `json:",omitempty"` // import path of package in dir ImportComment string `json:",omitempty"` // path in import comment on package statement Name string `json:",omitempty"` // package name Doc string `json:",omitempty"` // package documentation string Target string `json:",omitempty"` // installed target for this package (may be executable) ForTest string `json:",omitempty"` // package is only for use in named test Export string `json:",omitempty"` // file containing export data (set by go list -export) Match []string `json:",omitempty"` // command-line patterns matching this package Standard bool `json:",omitempty"` // is this package part of the standard Go library? // Dependency information Imports []string `json:",omitempty"` // import paths used by this package Deps []string `json:",omitempty"` // all (recursively) imported dependencies }
Package contains information about a Go package. Ideally we would just reuse cmd/go/internal/load.Package, but we're not allowed to import internal packages. So we've copy/pasted the relevant parts of that struct below.
Click to show internal directories.
Click to hide internal directories.