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
invoking gcc to compile the C parts of the package.
build compile packages and dependencies
clean remove object files
doc run godoc on package sources
- fix run gofix on packages
+ fix run go tool fix on packages
fmt run gofmt on package sources
get download and install packages and dependencies
install compile and install packages and dependencies
test test packages
tool run specified go tool
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.
See also: go fix, go fmt, go vet.
-Run gofix on packages
+Run go tool fix on packages
Usage:
The -d flag instructs get to stop after downloading the packages; that is,
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.
The -u flag instructs get to use the network to update the named packages
Version prints the Go version, as reported by runtime.Version.
-Run govet on packages
+Run go tool vet on packages
Usage:
For more about vet, see 'godoc vet'.
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.
var cmdFix = &Command{
Run: runFix,
UsageLine: "fix [importpath...]",
- Short: "run gofix on packages",
+ Short: "run go tool fix on packages",
Long: `
Fix runs the Go fix command on the packages named by the import paths.
The -d flag instructs get to stop after downloading the packages; that is,
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.
The -u flag instructs get to use the network to update the named packages
var cmdVet = &Command{
Run: runVet,
UsageLine: "vet [importpath...]",
- Short: "run govet on packages",
+ Short: "run go tool vet on packages",
Long: `
Vet runs the Go vet command on the packages named by the import paths.
For more about vet, see 'godoc vet'.
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.
`,
# Use of this source code is governed by a BSD-style
# 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
echo 'missing $O - maybe no Make.$GOARCH?' 1>&2
exit 1
sets the sampling interval in milliseconds. The default is to sample
every 100ms until the program completes.
-For reasons of disambiguation it is installed as 6prof although it also serves
-as an 8prof and a 5prof.
+It is installed as go tool prof and is architecture-independent.
*/
package documentation
Usage:
- ebnflint [--start production] [file]
+ go tool ebnflint [--start production] [file]
The --start flag specifies the name of the start production for
the grammar; it defaults to "Start".
var start = flag.String("start", "Start", "name of start production")
func usage() {
- fmt.Fprintf(os.Stderr, "usage: ebnflint [flags] [filename]\n")
+ fmt.Fprintf(os.Stderr, "usage: go tool ebnflint [flags] [filename]\n")
flag.PrintDefaults()
os.Exit(1)
}