mirror of
https://github.com/golang/go.git
synced 2024-10-01 07:17:21 +00:00
tools: update references to "x" to be "go tool x"
For instance, don't talk about gofix, talk about the fix tool or "go tool fix". R=golang-dev, rsc, r CC=golang-dev https://golang.org/cl/5608053
This commit is contained in:
parent
040fe32119
commit
1f565e7d20
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Cgo enables the creation of Go packages that call C code.
|
Cgo enables the creation of Go packages that call C code.
|
||||||
|
|
||||||
Usage: cgo [compiler options] file.go
|
Usage: go tool cgo [compiler options] file.go
|
||||||
|
|
||||||
The compiler options are passed through uninterpreted when
|
The compiler options are passed through uninterpreted when
|
||||||
invoking gcc to compile the C parts of the package.
|
invoking gcc to compile the C parts of the package.
|
||||||
|
@ -12,7 +12,7 @@ The commands are:
|
|||||||
build compile packages and dependencies
|
build compile packages and dependencies
|
||||||
clean remove object files
|
clean remove object files
|
||||||
doc run godoc on package sources
|
doc run godoc on package sources
|
||||||
fix run gofix on packages
|
fix run go tool fix on packages
|
||||||
fmt run gofmt on package sources
|
fmt run gofmt on package sources
|
||||||
get download and install packages and dependencies
|
get download and install packages and dependencies
|
||||||
install compile and install packages and dependencies
|
install compile and install packages and dependencies
|
||||||
@ -21,7 +21,7 @@ The commands are:
|
|||||||
test test packages
|
test test packages
|
||||||
tool run specified go tool
|
tool run specified go tool
|
||||||
version print Go version
|
version print Go version
|
||||||
vet run govet on packages
|
vet run go tool vet on packages
|
||||||
|
|
||||||
Use "go help [command]" for more information about a command.
|
Use "go help [command]" for more information about a command.
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ To run godoc with specific options, run godoc itself.
|
|||||||
See also: go fix, go fmt, go vet.
|
See also: go fix, go fmt, go vet.
|
||||||
|
|
||||||
|
|
||||||
Run gofix on packages
|
Run go tool fix on packages
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
|
|
||||||
@ -176,7 +176,7 @@ and 'go install'. See 'go help install'.
|
|||||||
The -d flag instructs get to stop after downloading the packages; that is,
|
The -d flag instructs get to stop after downloading the packages; that is,
|
||||||
it instructs get not to install the packages.
|
it instructs get not to install the packages.
|
||||||
|
|
||||||
The -fix flag instructs get to run gofix on the downloaded packages
|
The -fix flag instructs get to run the fix tool on the downloaded packages
|
||||||
before resolving dependencies or building the code.
|
before resolving dependencies or building the code.
|
||||||
|
|
||||||
The -u flag instructs get to use the network to update the named packages
|
The -u flag instructs get to use the network to update the named packages
|
||||||
@ -350,7 +350,7 @@ Usage:
|
|||||||
Version prints the Go version, as reported by runtime.Version.
|
Version prints the Go version, as reported by runtime.Version.
|
||||||
|
|
||||||
|
|
||||||
Run govet on packages
|
Run go tool vet on packages
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
|
|
||||||
@ -361,7 +361,7 @@ Vet runs the Go vet command on the packages named by the import paths.
|
|||||||
For more about vet, see 'godoc vet'.
|
For more about vet, see 'godoc vet'.
|
||||||
For more about import paths, see 'go help importpath'.
|
For more about import paths, see 'go help importpath'.
|
||||||
|
|
||||||
To run govet with specific options, run 'go tool vet'.
|
To run the vet tool with specific options, run 'go tool vet'.
|
||||||
|
|
||||||
See also: go fmt, go fix.
|
See also: go fmt, go fix.
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ package main
|
|||||||
var cmdFix = &Command{
|
var cmdFix = &Command{
|
||||||
Run: runFix,
|
Run: runFix,
|
||||||
UsageLine: "fix [importpath...]",
|
UsageLine: "fix [importpath...]",
|
||||||
Short: "run gofix on packages",
|
Short: "run go tool fix on packages",
|
||||||
Long: `
|
Long: `
|
||||||
Fix runs the Go fix command on the packages named by the import paths.
|
Fix runs the Go fix command on the packages named by the import paths.
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ and 'go install'. See 'go help install'.
|
|||||||
The -d flag instructs get to stop after downloading the packages; that is,
|
The -d flag instructs get to stop after downloading the packages; that is,
|
||||||
it instructs get not to install the packages.
|
it instructs get not to install the packages.
|
||||||
|
|
||||||
The -fix flag instructs get to run gofix on the downloaded packages
|
The -fix flag instructs get to run the fix tool on the downloaded packages
|
||||||
before resolving dependencies or building the code.
|
before resolving dependencies or building the code.
|
||||||
|
|
||||||
The -u flag instructs get to use the network to update the named packages
|
The -u flag instructs get to use the network to update the named packages
|
||||||
|
@ -7,14 +7,14 @@ package main
|
|||||||
var cmdVet = &Command{
|
var cmdVet = &Command{
|
||||||
Run: runVet,
|
Run: runVet,
|
||||||
UsageLine: "vet [importpath...]",
|
UsageLine: "vet [importpath...]",
|
||||||
Short: "run govet on packages",
|
Short: "run go tool vet on packages",
|
||||||
Long: `
|
Long: `
|
||||||
Vet runs the Go vet command on the packages named by the import paths.
|
Vet runs the Go vet command on the packages named by the import paths.
|
||||||
|
|
||||||
For more about vet, see 'godoc vet'.
|
For more about vet, see 'godoc vet'.
|
||||||
For more about import paths, see 'go help importpath'.
|
For more about import paths, see 'go help importpath'.
|
||||||
|
|
||||||
To run govet with specific options, run 'go tool vet'.
|
To run the vet tool with specific options, run 'go tool vet'.
|
||||||
|
|
||||||
See also: go fmt, go fix.
|
See also: go fmt, go fix.
|
||||||
`,
|
`,
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Use of this source code is governed by a BSD-style
|
# Use of this source code is governed by a BSD-style
|
||||||
# license that can be found in the LICENSE file.
|
# license that can be found in the LICENSE file.
|
||||||
|
|
||||||
eval $(gomake --no-print-directory -f ../../Make.inc go-env)
|
eval $(go tool make --no-print-directory -f ../../Make.inc go-env)
|
||||||
if [ -z "$O" ]; then
|
if [ -z "$O" ]; then
|
||||||
echo 'missing $O - maybe no Make.$GOARCH?' 1>&2
|
echo 'missing $O - maybe no Make.$GOARCH?' 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -41,8 +41,7 @@ Flag -t sets the maximum real time to sample, in seconds, and -d
|
|||||||
sets the sampling interval in milliseconds. The default is to sample
|
sets the sampling interval in milliseconds. The default is to sample
|
||||||
every 100ms until the program completes.
|
every 100ms until the program completes.
|
||||||
|
|
||||||
For reasons of disambiguation it is installed as 6prof although it also serves
|
It is installed as go tool prof and is architecture-independent.
|
||||||
as an 8prof and a 5prof.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
package documentation
|
package documentation
|
||||||
|
@ -13,7 +13,7 @@ Grammar productions are grouped in boxes demarcated by the HTML elements
|
|||||||
|
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
ebnflint [--start production] [file]
|
go tool ebnflint [--start production] [file]
|
||||||
|
|
||||||
The --start flag specifies the name of the start production for
|
The --start flag specifies the name of the start production for
|
||||||
the grammar; it defaults to "Start".
|
the grammar; it defaults to "Start".
|
||||||
|
@ -21,7 +21,7 @@ var fset = token.NewFileSet()
|
|||||||
var start = flag.String("start", "Start", "name of start production")
|
var start = flag.String("start", "Start", "name of start production")
|
||||||
|
|
||||||
func usage() {
|
func usage() {
|
||||||
fmt.Fprintf(os.Stderr, "usage: ebnflint [flags] [filename]\n")
|
fmt.Fprintf(os.Stderr, "usage: go tool ebnflint [flags] [filename]\n")
|
||||||
flag.PrintDefaults()
|
flag.PrintDefaults()
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user