.\" Automatically generated by Pandoc 3.1.11.1 .\" .TH "GO\-ENV" "1" "2026\-02\-19" "Go 1.26" "Go programming tools and commands" .SH NAME go\-env \- print Go environment information .SH SYNOPSIS \f[B]go env\f[R] [\f[B]\-json\f[R]] [\f[B]\-changed\f[R]] [\f[B]\-u\f[R]] [\f[B]\-w\f[R]] [\f[I]var \&...\f[R]] .SH DESCRIPTION Env prints Go environment information. .PP 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. .PP The \f[B]\-json\f[R] flag prints the environment in JSON format instead of as a shell script. .PP The \f[B]\-u\f[R] flag requires one or more arguments and unsets the default setting for the named environment variables, if one has been set with `go env \f[B]\-w\f[R]'. .PP The \f[B]\-w\f[R] flag requires one or more arguments of the form NAME=VALUE and changes the default settings of the named environment variables to the given values. .PP The \f[B]\-changed\f[R] flag prints only those settings whose effective value differs from the default value that would be obtained in an empty environment with no prior uses of the \f[B]\-w\f[R] flag. .PP For more about environment variables, see `go help environment'. .SH AUTHOR This manual page was created using help2man and afterwards updating the output. It is maintained by the Debian Go Compiler Team for the Debian project (and may be used by others).