Go env: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 4: Line 4:


=Overview=
=Overview=
The <code>env</code> command prints the effective values of the [[Go_Environment_Variables|environment variables]] relevant to the tool chain.
The <code>env</code> command prints the effective values of the [[Go_Environment_Variables#Overview|environment variables]] relevant to the tool chain.
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
go env GOOS GOARCH GOPATH
go env GOOS GOARCH GOPATH
</syntaxhighlight>
</syntaxhighlight>
=Options=
=Options=
==<tt>-w</tt>==
==<tt>-w</tt>==
The flag requires one or more <code>NAME=VALUE</code> arguments and changes the default settings for the named environment variables.
The flag requires one or more <code>NAME=VALUE</code> arguments and changes the default settings for the named environment variables.

Revision as of 22:07, 27 October 2023

Internal

Overview

The env command prints the effective values of the environment variables relevant to the tool chain.

go env GOOS GOARCH GOPATH

Options

-w

The flag requires one or more NAME=VALUE arguments and changes the default settings for the named environment variables.