cfg

package
v0.0.0-...-8aeb6ef Latest Latest
Warning

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

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

Documentation

Overview

Package cfg holds configuration shared by multiple parts of the go command.

Index

Constants

This section is empty.

Variables

View Source
var (
	// BuildA                 bool     // -a flag
	// BuildBuildmode         string   // -buildmode flag
	// BuildBuildvcs          = "auto" // -buildvcs flag: "true", "false", or "auto"
	// BuildContext           = defaultContext()
	// BuildMod               string                  // -mod flag
	// BuildModExplicit       bool                    // whether -mod was set explicitly
	// BuildModReason         string                  // reason -mod was set, if set by default
	// BuildI                 bool                    // -i flag
	// BuildLinkshared        bool                    // -linkshared flag
	// BuildMSan              bool                    // -msan flag
	// BuildASan              bool                    // -asan flag
	BuildN bool // -n flag; prints commands but does not run them.
	// BuildO                 string                  // -o flag
	// BuildP                 = runtime.GOMAXPROCS(0) // -p flag
	// BuildPkgdir            string                  // -pkgdir flag
	// BuildRace              bool                    // -race flag
	// BuildToolexec          []string                // -toolexec flag
	// BuildToolchainName     string
	// BuildToolchainCompiler func() string
	// BuildToolchainLinker   func() string
	// BuildTrimpath          bool // -trimpath flag
	// BuildV                 bool // -v flag; print the names of packages as they are compiled.
	// BuildWork              bool // -work flag
	BuildX bool // -x flag; prints commands before running them.

	CmdNames CommandNames // "build", "install", "list", "mod tidy", etc.

)

These are general "build flags" used by build and other commands.

View Source
var OrigEnv []string

OrigEnv is the original environment of the program at startup.

Functions

This section is empty.

Types

type CommandNames

type CommandNames []string

func (CommandNames) String

func (cs CommandNames) String() string

Jump to

Keyboard shortcuts

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