From: Ian Lance Taylor Date: Wed, 13 Feb 2019 04:45:45 +0000 (-0800) Subject: [release-branch.go1.12] doc: don't use "go tool vet" as an example X-Git-Tag: go1.12~19 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7ab5e0c5e2e2e75da90d18ecb4b8461b0c29c94c;p=gostls13.git [release-branch.go1.12] doc: don't use "go tool vet" as an example Updates #30199 Change-Id: Ib4586e3facb8c0985c8882482d94843b648b9d2f Reviewed-on: https://go-review.googlesource.com/c/162257 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick (cherry picked from commit ffd096db2b1cff6399eb1f86e5652564ee8ee362) Reviewed-on: https://go-review.googlesource.com/c/162238 Reviewed-by: Andrew Bonventre --- diff --git a/doc/cmd.html b/doc/cmd.html index c590f4d3ec..e30684793a 100644 --- a/doc/cmd.html +++ b/doc/cmd.html @@ -18,10 +18,8 @@ underlying binary with arguments appropriate to package-level processing.

The programs can also be run as stand-alone binaries, with unmodified arguments, -using the go tool subcommand, such as go tool vet. -This style of invocation allows, for instance, checking a single source file -rather than an entire package: go tool vet myprogram.go as -compared to go vet mypackage. +using the go tool subcommand, such as go tool cgo. +For most commands this is mainly useful for debugging. Some of the commands, such as pprof, are accessible only through the go tool subcommand.

@@ -76,7 +74,7 @@ and rewrites them to use newer ones. -fmt +fmt      Fmt formats Go packages, it is also available as an independent gofmt command with more general options. diff --git a/doc/install-source.html b/doc/install-source.html index 6d416d33f1..bbe7cdfd00 100644 --- a/doc/install-source.html +++ b/doc/install-source.html @@ -349,15 +349,7 @@ provides essential setup instructions for using the Go 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 golang.org/x/tools/cmd/...
-
- -

-Or if you just want to install a specific command (godoc in this case): +To install one of the tools (godoc in this case):

@@ -374,16 +366,6 @@ 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