golang

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Filename string `json:"filename"`
	OS       string `json:"os"`
	Arch     string `json:"arch"`
	Version  string `json:"version"`
	SHA256   string `json:"sha256"`
	Size     int64  `json:"size"`
	Kind     string `json:"kind"`
}

type Golang

type Golang struct{}

func (*Golang) GetDefaultVersion

func (g *Golang) GetDefaultVersion(ctx context.Context) *core.InstalledVersion

func (*Golang) Install

func (g *Golang) Install(ctx context.Context, version *core.RemoteVersion) error

func (*Golang) ListInstalledVersions

func (g *Golang) ListInstalledVersions(ctx context.Context) ([]*core.InstalledVersion, error)

func (*Golang) ListRemoteVersions

func (g *Golang) ListRemoteVersions(ctx context.Context) ([]*core.RemoteVersion, error)

func (*Golang) Name

func (g *Golang) Name() string

func (*Golang) SetDefaultVersion

func (g *Golang) SetDefaultVersion(ctx context.Context, version string) error

func (*Golang) Uninstall

func (g *Golang) Uninstall(ctx context.Context, version string) error

type Version

type Version struct {
	Version string `json:"version"`
	Stable  bool   `json:"stable"`
	Files   []File `json:"files"`
}

Source Files

  • golang.go

Jump to

Keyboard shortcuts

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