...

Package tool

import "cmd/go/internal/tool"
Overview
Index

Overview ▾

Package tool implements the “go tool” command.

Index ▾

Package files

tool.go

Variables

var CmdTool = &base.Command{
    Run:       runTool,
    UsageLine: "go tool [-n] command [args...]",
    Short:     "run specified go tool",
    Long: `
Tool runs the go tool command identified by the arguments.
With no arguments it prints the list of known tools.

The -n flag causes tool to print the command that would be
executed but not execute it.

For more about each tool command, see 'go doc cmd/<command>'.
`,
}