golang

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: GPL-3.0 Imports: 10 Imported by: ? 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

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.CompilersDir.

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