From b3caa86f91a22f1aa31ac6a6cabf3a5e88751940 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Wed, 25 Sep 2013 14:10:49 +1000 Subject: [PATCH] doc: document installation of go.tools commands Fixes #5663. R=golang-dev, r CC=golang-dev https://golang.org/cl/13891043 --- doc/install-source.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/doc/install-source.html b/doc/install-source.html index eae75e0bda..3181cd7c9f 100644 --- a/doc/install-source.html +++ b/doc/install-source.html @@ -220,6 +220,36 @@ The document How to Write Go Code explains how to set up a work environment in which to build and test Go code.

+

Install additional tools

+ +

+The source code for seeral 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. +

+

Community resources

-- 2.50.0