mod

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mod

type Mod struct {
	modfile.ModFile
	modfile.ModVersion

	// Repo where module in vcs root
	Repo string
	// SubPath mod local sub path
	SubPath string
	// Dir module absolute dir
	Dir string
	// Root means this import path is mod root
	Root bool
	// Sum repo absolute dir sum
	Sum string
}

func (*Mod) FixVersion

func (m *Mod) FixVersion(repo string, version string) string

func (*Mod) LoadInfo

func (m *Mod) LoadInfo(ctx context.Context) (bool, error)

func (*Mod) ModuleRoot

func (m *Mod) ModuleRoot() string

func (*Mod) Resolved

func (m *Mod) Resolved() bool

func (*Mod) SetRequire

func (m *Mod) SetRequire(module string, modVersion modfile.ModVersion, indirect bool)

func (*Mod) String

func (m *Mod) String() string

Jump to

Keyboard shortcuts

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