Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶ added in v0.1.1
type Dir struct { // FilePath is the absolute path to the subject dir. FilePath string // ImportPath is the path required to import the package in the subject dir. ImportPath string // ModRootDir is the absolute path to the root dir of the module which includes the subject dir. ModRootDir string // ModRootImportPath is the path selected in the module's go.mod. ModRootImportPath string }
Dir holds package/module details about a file directory.
type Module ¶
type Module struct { // Path is an import path. Path string // Version is a semver string. Version string }
Module holds the per-module fields unmarshaled from "go list" output.
type ModuleSet ¶
type ModuleSet struct {
// contains filtered or unexported fields
}
ModuleSet holds Module values with unique import paths.
func (*ModuleSet) Add ¶
Add updates the set, either creating a new entry or overwriting an existing one with the same import path.
func (*ModuleSet) GetByPath ¶
GetByPath returns the Module associated with the input import path, if found. Otherwise it returns nil.
func (*ModuleSet) GetPaths ¶
func (l *ModuleSet) GetPaths() *cage_strings.Set
GetPaths returns all import paths.
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
Query stores options for, and executes, "go list" in order to produce ModuleSet values.
func (*Query) AllModules ¶
AllModules ia an alias for an "-m all" option of "go list".
Click to show internal directories.
Click to hide internal directories.