Codebase list golang-defaults / 9ec19dcf-bdba-439e-ab44-5e7076779a02/main man / go-env.1
9ec19dcf-bdba-439e-ab44-5e7076779a02/main

Tree @9ec19dcf-bdba-439e-ab44-5e7076779a02/main (Download .tar.gz)

go-env.1 @9ec19dcf-bdba-439e-ab44-5e7076779a02/mainraw · history · blame

.\"                                      Hey, EMACS: -*- nroff -*-
.TH GO-ENV 1 "2021-09-06"
.\" Please adjust this date whenever revising the manpage.
.SH NAME
go-env \- print Go environment information
.SH SYNOPSIS
.B go env
.RB [
.IR "var ..."
.RB ]
.SH DESCRIPTION
.P
Env prints Go environment information.
.P
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.
.TP
.B \-json
prints the environment in JSON format
instead of as a shell script.
.TP
.B \-u
requires one or more arguments and unsets
the default setting for the named environment variables,
if one has been set with 'go env -w'.
.TP
.B \-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.
.P
For more about environment variables, see 'go help environment'.
.SH AUTHOR
.P
This manual page was written by Michael Stapelberg <stapelberg@debian.org>
and is maintained by the
Debian Go Compiler Team <team+go-compiler@tracker.debian.org>
based on the output of 'go help env'
for the Debian project (and may be used by others).