Documentation
¶
Index ¶
- func ArchiveName(version string, platform Platform) string
- func Command(paths Paths, args ...string) *exec.Cmd
- func Download(url string, destination string) error
- func DownloadURL(version string, platform Platform) string
- func ExtractTarGz(archivePath string, destinationDir string) error
- func ExtractTarXz(archivePath string, destinationDir string) error
- func ExtractZip(archivePath, destinationDir string) error
- func PNPMCommand(node NodePaths, pnpm PNPMPaths, workDir string, args ...string) *exec.Cmd
- func ResolveGoxHome() (string, error)
- func ToModVersion(exactVersion string) string
- type Info
- type NodeInfo
- type NodePaths
- type PNPMInfo
- type PNPMPaths
- type Paths
- type Platform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveName ¶
func DownloadURL ¶
func ExtractTarGz ¶
func ExtractTarXz ¶
func ExtractZip ¶
ExtractZip extracts the Windows Go distribution without invoking a shell.
func PNPMCommand ¶
func ResolveGoxHome ¶
func ToModVersion ¶
Types ¶
type NodePaths ¶
type NodePaths struct {
HomeDir string
ToolchainDir string
VersionDir string
NodeRoot string
NodeBin string
NodeExec string
NPMExec string
NPXExec string
CorepackExec string
ArchivePath string
}
func EnsureNode ¶
type PNPMPaths ¶
type PNPMPaths struct {
HomeDir string
ToolchainDir string
VersionDir string
PNPMRoot string
PNPMBin string
PNPMExec string
}
func ResolvePNPMPaths ¶
Click to show internal directories.
Click to hide internal directories.