table of contents
- bullseye 2:1.15~1
- bullseye-backports 2:1.19~1~bpo11+1
- testing 2:1.19~1
- unstable 2:1.19~1
|GO-ENV(1)||General Commands Manual||GO-ENV(1)|
go-env - print Go environment information
go env [ var ... ]
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.
- prints the environment in JSON format instead of as a shell script.
- requires one or more arguments and unsets the default setting for the named environment variables, if one has been set with ‘go env -w’.
- requires one or more arguments of the form NAME=VALUE and changes the default settings of the named environment variables to the given values.
For more about environment variables, see ‘go help environment’.
This manual page was written by Michael Stapelberg <email@example.com> and is maintained by the Debian Go Compiler Team <firstname.lastname@example.org> based on the output of ‘go help env’ for the Debian project (and may be used by others).