diff --git a/src/cmd/go/doc.go b/src/cmd/go/doc.go index 19fe5cd3ef..0d4e263891 100644 --- a/src/cmd/go/doc.go +++ b/src/cmd/go/doc.go @@ -250,6 +250,10 @@ quoted string appears a single argument to the generator. Go generate sets several variables when it runs the generator: + $GOARCH + The execution architecture (arm, amd64, etc.) + $GOOS + The execution operating system (linux, windows, etc.) $GOFILE The base name of the file. $GOPACKAGE