Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoImport ¶
type AutoImport struct {
// contains filtered or unexported fields
}
AutoImport helps you automatically add imports to your source files.
type Dependency ¶
Dependency represents a single package dependency in a go.mod file.
type Package ¶
type Package struct { Name string // Actual package name as declared by the package keyword RealPath string // Real file path ImportPath string // Import path used in Go source files DirectoryName string // Base name of the directory IsModuleRoot bool // Only root packages have go.mod files }
Package represents a single Go package.
type PackageIndex ¶
PackageIndex is a map that maps a package name to possible import paths.
func GetPackagesInDirectory ¶ added in v0.4.0
func GetPackagesInDirectory(scanPath string, importPathPrefix string) PackageIndex
GetPackagesInDirectory returns a map of package names mapped to packages.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.