Documentation ¶
Index ¶
Constants ¶
View Source
const KnownEnv = `` /* 577-byte string literal not displayed */
Variables ¶
View Source
var ( GOROOT = BuildContext.GOROOT GOBIN = Getenv("GOBIN") BuildContext = build.Default BuildV bool // -v flag ModFile string // -modfile flag CmdName string // "build", "install", "list", "mod tidy", etc )
View Source
var CmdEnv []EnvVar
CmdEnv是运行go-tool命令的新环境。 用户二进制文件(在go test或go run期间)使用OrigEnv运行, 不是CmdEnv。
View Source
var OrigEnv []string
OrigEnv is the original environment of the program at startup. OrigEnv是程序启动时的原始环境。
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.