Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
func NewCmd ¶
NewCmd creates a new go command using the passed path as the path to the Go executable.
func (*Cmd) DownloadMod ¶
func (c *Cmd) DownloadMod(path string) (*DownloadModule, error)
func (*Cmd) EnvGOMODCACHE ¶
type DownloadModule ¶
type DownloadModule struct { Path string // module path Query string // version query corresponding to this version Version string // module version Error string // error loading module Info string // absolute path to cached .info file GoMod string // absolute path to cached .mod file Zip string // absolute path to cached .zip file Dir string // absolute path to cached source root directory Sum string // checksum for path, version (as in go.sum) GoModSum string // checksum for go.mod (as in go.sum) Origin any // provenance of module Reuse bool // reuse of old module info is safe }
Click to show internal directories.
Click to hide internal directories.