toolchain

package standard library
go1.23rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Overview

Package toolchain implements dynamic switching of Go toolchains.

Index

Constants

This section is empty.

Variables

View Source
var TestVersionSwitch string

TestVersionSwitch is set in the test go binary to the value in $TESTGO_VERSION_SWITCH. Valid settings are:

"switch" - simulate version switches by reinvoking the test go binary with a different TESTGO_VERSION.
"mismatch" - like "switch" but forget to set TESTGO_VERSION, so it looks like we invoked a mismatched toolchain
"loop" - like "mismatch" but forget the target check, causing a toolchain switching loop

Functions

func