cli

package
v0.0.0-...-54744eb Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 35 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Run executes the g command line interface.

Types

type InstallReq

type InstallReq struct {
	Version      string `` /* 517-byte string literal not displayed */
	Nouse        bool   `json:"nouse" description:"Don't use the version after installed." required:"false"`
	SkipChecksum bool   `json:"skip-checksum" description:"Skip checksum verification." required:"false"`
}

type LsRemoteReq

type LsRemoteReq struct {
	Version string `` /* 576-byte string literal not displayed */
	Output  string `json:"output" description:"Output format. Optional values: json, text" required:"false"`
}

type LsReq

type LsReq struct {
	Output string `json:"output" description:"Output format. Optional values: json, text" required:"false"`
}

type ToolAlias

type ToolAlias struct {
	Name   string `json:"name"`
	Module string `json:"module"`
}

ToolAlias maps a short tool name to its full Go module path.

type ToolchainConfig

type ToolchainConfig struct {
	Toolchains []ToolchainEntry `json:"toolchains"`
	KnownTools []ToolAlias      `json:"known_tools,omitempty"`
}

ToolchainConfig is the on-disk format for all managed toolchains.

type ToolchainEntry

type ToolchainEntry struct {
	Name               string    `json:"name"`
	ModulePath         string    `json:"module_path,omitempty"`
	InstallPath        string    `json:"install_path"`
	Version            string    `json:"version"`
	InstallTime        time.Time `json:"install_time"`
	GoVersionDependent bool      `json:"go_version_dependent"`
	GoVersion          string    `json:"go_version,omitempty"`
}

ToolchainEntry records a single managed toolchain.

type UninstallReq

type UninstallReq struct {
	Version string `json:"version" description:"The specific go sdk version number(e.g. '1.21.4'). " required:"true"`
}

type UseReq

type UseReq struct {
	Version string `json:"version" description:"The specific go sdk version number(e.g. '1.21.4')." required:"true"`
}

Jump to

Keyboard shortcuts

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