golang

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoRuntime

type GoRuntime struct {
	// contains filtered or unexported fields
}

GoRuntime implements the Runtime interface for Go

func New

func New(cache types.Cache, downloader types.Downloader) *GoRuntime

New creates a new Go runtime manager

func (*GoRuntime) Get

func (g *GoRuntime) Get(ctx context.Context, version string) (string, error)

Get downloads and installs the specified Go version

func (*GoRuntime) GetLatest

func (g *GoRuntime) GetLatest(ctx context.Context) (string, error)

GetLatest downloads the latest stable Go version

func (*GoRuntime) List

func (g *GoRuntime) List(ctx context.Context) ([]types.Version, error)

List returns available Go versions

func (*GoRuntime) Name

func (g *GoRuntime) Name() string

Name returns the runtime name

Jump to

Keyboard shortcuts

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