Help us shape the future of Go! Take the 2026 Go Developer Survey

gotoolchain

package
v0.0.99 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package gotoolchain applies the compiler's minimum Go version to subprocesses.

Index

Constants

View Source
const Minimum = "go1.26.0"

Variables

This section is empty.

Functions

func Query

func Query(tool, dir string, env []string) (map[string]string, []string, string, error)

Query returns effective settings for the toolchain that will run Bork's Go subprocesses. It honors process and saved GOENV settings via Go itself.

func SelectedTool

func SelectedTool(tool string, values map[string]string) string

SelectedTool resolves a switched official SDK. Wrappers keep their own executable and remain outside the installed-SDK fast cache contract.

func Setting

func Setting(current, setting string) (string, error)

Setting preserves explicit constraints and raises automatic defaults only when the selected toolchain is too old. Go owns downloading and discovery.

Types

This section is empty.

Jump to

Keyboard shortcuts

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