doc/code.html | 26 +++++++++++++++++++++++++-
doc/install-source.html | 17 +++++++++++++++--
doc/install.html | 179 ++++++++++++++++++++++++-----------------------------
diff --git a/doc/code.html b/doc/code.html
index 946585ccd8b8f5a698f5d7dddaba8a8767c8dfff..0abe6ac748cd9f7bcc84c00b1d46b17c2e6a19ce 100644
--- a/doc/code.html
+++ b/doc/code.html
@@ -580,7 +580,13 @@ go help importpath.
+Subscribe to the +golang-announce +mailing list to be notified when a new stable version of Go is released. +
See Effective Go for tips on writing @@ -596,3 +602,21 @@
Visit the documentation page for a set of in-depth articles about the Go language and its libraries and tools.
+ + +
+For real-time help, ask the helpful gophers in #go-nuts on the
+Freenode IRC server.
+
+The official mailing list for discussion of the Go language is +Go Nuts. +
+ ++Report bugs using the +Go issue tracker. +
diff --git a/doc/install-source.html b/doc/install-source.html index 59d984fd388a68487b33edbcbf9ee43c0eb98d09..b99360c71ca75d333210d034360eee0b82574517 100644 --- a/doc/install-source.html +++ b/doc/install-source.html @@ -216,9 +216,22 @@-The document How to Write Go Code explains how to -set up a work environment in which to build and test Go code. +You're almost done. +You just need to do a little more setup. +
+ ++ +How to Write Go Code +Learn how to set up and use the Go tools +
+ ++The How to Write Go Code document +provides essential setup instructions for using the Go tools. +
+-Click the link above to visit the -Go project's downloads page -and select the binary distribution that matches your operating system and -processor architecture. -
- -
-Official binary distributions are available for the FreeBSD, Linux, Mac OS X
-(Snow Leopard, Lion, and Mountain Lion), NetBSD, and Windows operating systems
-and the 32-bit (386) and 64-bit (amd64) x86 processor
-architectures.
+Official binary
+distributions are available for the FreeBSD, Linux, Mac OS X (Snow Leopard
+and above), and Windows operating systems and the 32-bit (386) and
+64-bit (amd64) x86 processor architectures.
If a binary distribution is not available for your combination of operating -system and architecture you may want to try +system and architecture, try installing from source or installing gccgo instead of gc.
+
The gc compiler supports the following operating systems and
architectures. Please ensure your system meets these requirements before
@@ -53,7 +48,6 @@
@@ -65,41 +59,20 @@ installed Xcode 4.3+, you can install it from the Components tab of the Downloads preferences panel.
-
-The Go binary distributions assume they will be installed in
-/usr/local/go (or c:\Go under Windows),
-but it is possible to install them in a different
-location. If you do this, you will need to set the GOROOT
-environment variable to that directory when using the Go tools.
-
-For example, if you installed Go to your home directory you should add the
-following commands to $HOME/.profile:
-
-export GOROOT=$HOME/go -export PATH=$PATH:$GOROOT/bin -- -
-Windows users should read the section about setting -environment variables under Windows. -
- -If you are upgrading from an older version of Go you must first remove the existing version. +
+ +
-Extract the archive
-into /usr/local, creating a Go tree in /usr/local/go.
-For example:
+Download the archive
+and extract it into /usr/local, creating a Go tree in
+/usr/local/go. For example:
@@ -125,11 +98,36 @@export PATH=$PATH:/usr/local/go/bin+Installing to a custom location + +
+The Go binary distributions assume they will be installed in +
+ +/usr/local/go(orc:\Gounder Windows), +but it is possible to install the Go tools to a different location. +In this case you must set theGOROOTenvironment variable +to point to the directory in which it was installed. ++For example, if you installed Go to your home directory you should add the +following commands to
+ +$HOME/.profile: ++export GOROOT=$HOME/go +export PATH=$PATH:$GOROOT/bin ++ ++Note:
+GOROOTmust be set only when installing to a custom +location. +Mac OS X package installer
-Open the package file -and follow the prompts to install the Go tools. +Download the package file, +open it, and follow the prompts to install the Go tools. The package installs the Go distribution to
@@ -148,34 +146,33 @@ a zip archive that requires you to set some environment variables and an MSI installer that configures your installation automatically. -/usr/local/go.Zip archive
+MSI installer
-Extract the zip file -to the directory of your choice (we suggest
c:\Go). +Open the MSI file +and follow the prompts to install the Go tools. +By default, the installer puts the Go distribution inc:\Go.-If you chose a directory other than
+c:\Go, you must set -theGOROOTenvironment variable to your chosen path. +The installer should put thec:\Go\bindirectory in your +PATHenvironment variable. You may need to restart any open +command prompts for the change to take effect.Zip archive
+-Add the
- -binsubdirectory of your Go root (for example,c:\Go\bin) to yourPATHenvironment variable. +Download the zip file and extract it into the directory of your choice (we suggestc:\Go).MSI installer
-Open the MSI file -and follow the prompts to install the Go tools. -By default, the installer puts the Go distribution in
c:\Go. +If you chose a directory other thanc:\Go, +you must set theGOROOTenvironment variable to your chosen path.-The installer should put the
c:\Go\bindirectory in your -PATHenvironment variable. You may need to restart any open -command prompts for the change to take effect. +Add thebinsubdirectory of your Go root (for example,c:\Go\bin) to yourPATHenvironment variable.Setting environment variables under Windows
@@ -186,6 +183,7 @@ Variables" button on the "Advanced" tab of the "System" control panel. Some versions of Windows provide this control panel through the "Advanced System Settings" option inside the "System" control panel. +Test your installation
@@ -219,46 +217,54 @@If you see the "hello, world" message then your Go installation is working.
+Set up your work environment
-The document How to Write Go Code explains how to -set up a work environment in which to build and test Go code. +You're almost done. +You just need to do a little more setup.
- -What's next
-Start by taking A Tour of Go. + +How to Write Go Code +Learn how to set up and use the Go tools +
-Build a web application by following the Wiki -Tutorial. +The How to Write Go Code document +provides essential setup instructions for using the Go tools.
--Read Effective Go to learn about writing -idiomatic Go code. -
+ +Uninstalling Go
-For the full story, consult Go's extensive documentation. +To remove an existing Go installation from your system delete the +
godirectory. This is usually/usr/local/go+under Linux, Mac OS X, and FreeBSD orc:\Go+under Windows.-Subscribe to the -golang-announce -mailing list to be notified when a new stable version of Go is released. +You should also remove the Go
-bindirectory from your +PATHenvironment variable. +Under Linux and FreeBSD you should edit/etc/profileor +$HOME/.profile. +If you installed Go with the Mac OS X package then you +should remove the/etc/paths.d/gofile. +Windows users should read the section about setting +environment variables under Windows.Community resources
+Getting help
-For real-time help, there may be users or developers on -
#go-nutson the Freenode IRC server. +For real-time help, ask the helpful gophers in#go-nutson the +Freenode IRC server.@@ -267,29 +273,8 @@ Go Nuts.
-Bugs should be reported using the +Report bugs using the Go issue tracker.
-Uninstalling Go
- --To remove an existing Go installation from your system delete the -
- -godirectory. This is usually/usr/local/go-under Linux, Mac OS X, and FreeBSD orc:\Go-under Windows. --You should also remove the Go
- -bindirectory from your -PATHenvironment variable. -Under Linux and FreeBSD you should edit/etc/profileor -$HOME/.profile. -If you installed Go with the Mac OS X package then you -should remove the/etc/paths.d/gofile. -Windows users should read the section about setting -environment variables under Windows. -