Documentation ¶
Overview ¶
Package envcmd implements the “go env” command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdEnv = &base.Command{
UsageLine: "go env [-json] [var ...]",
Short: "print Go environment information",
Long: `
Env prints Go environment information.
By default env prints information as a shell script
(on Windows, a batch file). If one or more variable
names is given as arguments, env prints the value of
each named variable on its own line.
The -json flag prints the environment in JSON format
instead of as a shell script.
For more about environment variables, see 'go help environment'.
`,
}
Functions ¶
func ExtraEnvVars ¶
ExtraEnvVars returns environment variables that should not leak into child processes.
func ExtraEnvVarsCostly ¶
ExtraEnvVarsCostly returns environment variables that should not leak into child processes but are costly to evaluate.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.