From: Andrew Gerrand The Go compilation environment depends on three environment
-variables that you should set in your
+The Go compilation environment depends on three environment variables plus one optional variable:
+Environment variables
-.bashrc
or equivalent,
-plus one optional variable:
-Set these variables in your .bashrc
. For example:
+Set these variables in your shell profile ($HOME/.bashrc
,
+$HOME/.profile
, or equivalent). The settings might look
+something like this:
@@ -116,7 +118,8 @@ export GOOS=linux
-Double-check them by listing your environment. +Double-check them by listing your environment. (You will need to launch +a new shell or terminal window for the changes to take effect.)