golang

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package golang provides a Go builder that downloads toolchains from go.dev.

Import this package for its side effects to register the builder:

import _ "github.com/Highload-fun/builders/golang"

Index

Constants

View Source
const BuilderId = "go"

BuilderId is the identifier used to register and look up this builder.

Variables

This section is empty.

Functions

This section is empty.

Types

type Golang

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

Golang implements builders.Builder for the Go programming language.

func (*Golang) Build

func (g *Golang) Build(ctx context.Context, sb *sandbox.Sandbox, version string, flags []string) error

Build compiles Go source code inside the sandbox. If version is empty, "go1.13.8" is used. The toolchain is downloaded on demand and cached in builders.CompilersHostDir.

func (*Golang) GetVersions

func (g *Golang) GetVersions(ctx context.Context) ([]builders.Version, error)

GetVersions scrapes the Go release history page for available versions. Results are cached for 1 hour.

Directories

Path Synopsis
test
md5 command
src command

Jump to

Keyboard shortcuts

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