From 64d2a7c8945ba05af859901f5e248f1befdd8621 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 3 Dec 2013 09:43:15 +0100 Subject: Imported Upstream version 1.2 --- doc/install-source.html | 120 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 102 insertions(+), 18 deletions(-) (limited to 'doc/install-source.html') diff --git a/doc/install-source.html b/doc/install-source.html index ee7b39b7e..b99360c71 100644 --- a/doc/install-source.html +++ b/doc/install-source.html @@ -57,7 +57,7 @@ architectures. arm (a.k.a. ARM); 5g,5l,5c,5a
- Supports only Linux binaries. Less widely used than the other ports and therefore not as thoroughly tested. + Supports Linux, FreeBSD and NetBSD binaries. Less widely used than the other ports.
@@ -69,7 +69,7 @@ goroutines, such as stacks that grow and shrink on demand.

-The compilers can target the FreeBSD, Linux, NetBSD, OpenBSD, OS X (Darwin), +The compilers can target the FreeBSD, Linux, NetBSD, OpenBSD, OS X (Darwin), Plan 9, and Windows operating systems. The full set of supported combinations is listed in the discussion of environment variables below. @@ -216,8 +216,61 @@ If you see the "hello, world" message then Go is installed correctly.

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. +

+ +

+ +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. +

+ + +

Install additional tools

+ +

+The source code for several Go tools (including godoc) +is kept in the go.tools repository. +To install all of them, run the go get command: +

+ +
+$ go get code.google.com/p/go.tools/cmd/...
+
+ +

+Or if you just want to install a specific command (godoc in this case): +

+ +
+$ go get code.google.com/p/go.tools/cmd/godoc
+
+ +

+To install these tools, the go get command requires +that Mercurial be installed locally. +

+ +

+You must also have a workspace (GOPATH) set up; +see How to Write Go Code for the details. +

+ +

+Note: The go command will install the godoc +binary to $GOROOT/bin (or $GOBIN) and the +cover and vet binaries to +$GOROOT/pkg/tool/$GOOS_$GOARCH. +You can access the latter commands with +"go tool cover" and +"go tool vet".

Community resources

@@ -273,9 +326,8 @@ The Go compilation environment can be customized by environment variables. to override the defaults.

-
- -

$GOROOT

+
+

Note that $GOARCH and $GOOS identify the -- cgit v1.2.3