Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoVersion ¶ added in v0.1.0
type GoVersion string
GoVersion defines the module version of Go used by the Module.
type GoVersions ¶ added in v0.1.0
type GoVersions struct {
// contains filtered or unexported fields
}
GoVersions handles Go versions used by different Modules.
func (*GoVersions) IsSame ¶ added in v0.1.0
func (g *GoVersions) IsSame() bool
IsSame returns true when all Modules use the same Go Version.
func (*GoVersions) Set ¶ added in v0.1.0
func (g *GoVersions) Set(name ModuleName, version GoVersion)
Set sets the Go Version being used by the defined Module.
func (*GoVersions) Values ¶ added in v0.1.0
func (g *GoVersions) Values() []ModuleGoVersion
Values returns a copy of currently set modules and their Go versions.
type License ¶ added in v0.1.0
type License struct { Identifier string Name string ShortName string Type diligent.Type Category diligent.Category }
License represents the LICENSE used by a Package.
type Module ¶
type Module struct { ModuleGoVersion DependencyRequirements map[PackageName]Package }
Module represents the contents of a go.mod file.
type ModuleGoVersion ¶ added in v0.1.0
type ModuleGoVersion struct { Name ModuleName GoVersion GoVersion }
ModuleGoVersion represents a module and its Go version.
type Package ¶
type Package struct { Name PackageName Version string IsIndirect bool ReplacedPath string ReplacedVersion string License License }
Package represents an imported Go packaged in a Module.
type PackageName ¶ added in v0.1.0
type PackageName string
PackageName defines the name of the package.
type Packages ¶ added in v0.1.0
type Packages struct {
// contains filtered or unexported fields
}
Packages handles Packages used by different modules.
func (*Packages) IsSame ¶ added in v0.1.0
func (p *Packages) IsSame(value PackageName) bool
IsSame returns true when all Modules use the same Package Version.
func (*Packages) Names ¶ added in v0.1.0
func (p *Packages) Names() []PackageName
Names returns a slice of all package names used in total.
func (*Packages) Set ¶ added in v0.1.0
func (p *Packages) Set(name ModuleName, pkg Package)
Set sets the Package being used by the defined Module.
func (*Packages) Values ¶ added in v0.1.0
func (p *Packages) Values(value PackageName) map[ModuleName]Package
Values returns a copy of currently set modules and their packages by package.