mod

package
v0.0.0-...-49a645f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module is an immutable representation of a Go module.

func New

func New(
	repo misc.LaRepository,
	shortName misc.ModuleShortName,
	mf *modfile.File,
	vl semver.SemVer,
	vr semver.SemVer) *Module

func (*Module) AbsPath

func (m *Module) AbsPath() string

func (*Module) DependsOn

func (m *Module) DependsOn(target misc.LaModule) (bool, semver.SemVer)

func (*Module) GetDisallowedReplacements

func (m *Module) GetDisallowedReplacements(
	allowedReplacements []string) (badReps []string)

func (*Module) GetReplacements

func (m *Module) GetReplacements() (result []string)

func (*Module) GitRepo

func (m *Module) GitRepo() misc.LaRepository

func (*Module) ImportPath

func (m *Module) ImportPath() string

func (*Module) ShortName

func (m *Module) ShortName() misc.ModuleShortName

func (*Module) VersionLocal

func (m *Module) VersionLocal() semver.SemVer

func (*Module) VersionRemote

func (m *Module) VersionRemote() semver.SemVer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL