@@ -501,10 +501,6 @@ General-purpose environment variables:
501
501
GOTMPDIR
502
502
The directory where the go command will write
503
503
temporary source files, packages, and binaries.
504
- GOTOOLDIR
505
- The directory where the go tools (compile, cover, doc, etc...)
506
- are installed. This is printed by go env, but setting the
507
- environment variable has no effect.
508
504
509
505
Environment variables for use with cgo:
510
506
@@ -573,6 +569,20 @@ Special-purpose environment variables:
573
569
Defined by Git. A colon-separated list of schemes that are allowed to be used
574
570
with git fetch/clone. If set, any scheme not explicitly mentioned will be
575
571
considered insecure by 'go get'.
572
+
573
+ Additional information available from 'go env' but not read from the environment:
574
+
575
+ GOEXE
576
+ The executable file name suffix (".exe" on Windows, "" on other systems).
577
+ GOHOSTARCH
578
+ The architecture (GOARCH) of the Go toolchain binaries.
579
+ GOHOSTOS
580
+ The operating system (GOOS) of the Go toolchain binaries.
581
+ GOMOD
582
+ The absolute path to the go.mod of the main module,
583
+ or the empty string if not using modules.
584
+ GOTOOLDIR
585
+ The directory where the go tools (compile, cover, doc, etc...) are installed.
576
586
` ,
577
587
}
578
588
0 commit comments