Documentation ¶
Index ¶
- Variables
- type DownloadInstaller
- type Env
- func (env *Env) BinaryName() string
- func (env *Env) CurrentBinaryPath() (*string, error)
- func (env *Env) CurrentVersion() (*string, error)
- func (env *Env) Install(version string) error
- func (env *Env) Installed(version string) (bool, error)
- func (env *Env) ListInstalled() ([]string, error)
- func (env *Env) Name() string
- func (env *Env) Uninstall(version string) error
- func (env *Env) Use(version string) error
- type GoBuildInstaller
- type Installer
- type Profile
Constants ¶
This section is empty.
Variables ¶
View Source
var Fs = afero.NewOsFs()
View Source
var Os = runtime.GOOS
Functions ¶
This section is empty.
Types ¶
type DownloadInstaller ¶
type DownloadInstaller struct {
// contains filtered or unexported fields
}
func NewDownloadInstaller ¶
func NewDownloadInstaller(downloadUrlTemplate string, ctx context.Context) (*DownloadInstaller, error)
func (*DownloadInstaller) Available ¶
func (d *DownloadInstaller) Available() bool
func (*DownloadInstaller) DownloadUrl ¶
func (d *DownloadInstaller) DownloadUrl(version string) string
type Env ¶
type Env struct { Installer // contains filtered or unexported fields }
func (*Env) BinaryName ¶
func (*Env) CurrentBinaryPath ¶
func (*Env) CurrentVersion ¶
func (*Env) ListInstalled ¶
type GoBuildInstaller ¶
type GoBuildInstaller struct {
// contains filtered or unexported fields
}
func (*GoBuildInstaller) Available ¶
func (g *GoBuildInstaller) Available() bool
type Installer ¶
func NewFallbackInstaller ¶
Click to show internal directories.
Click to hide internal directories.