Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + const ToolWindowsExtension + var Go = &Command + var Interrupted = make(chan struct{}) + var SignalTrace os.Signal = nil — windows/amd64 + var SignalTrace os.Signal = syscall.SIGQUIT — darwin/amd64, js/wasm, linux/amd64 + var ToolDir = build.ToolDir + var ToolGOARCH = runtime.GOARCH + var ToolGOOS = runtime.GOOS + var ToolIsWindows = ToolGOOS == "windows" + var Usage func() + func AddBuildFlagsNX(flags *flag.FlagSet) + func AddModCommonFlags(flags *flag.FlagSet) + func AddModFlag(flags *flag.FlagSet) + func AppendPWD(base []string, dir string) []string + func AtExit(f func()) + func Cwd() string + func Errorf(format string, args ...any) + func Exit() + func ExitIfErrors() + func Fatalf(format string, args ...any) + func GOFLAGS() []string + func GetExitStatus() int + func InGOFLAGS(flag string) bool + func InitGOFLAGS() + func IsTestFile(file string) bool + func RelPaths(paths []string) []string + func Run(cmdargs ...any) + func RunStdin(cmdline []string) + func SetExitStatus(n int) + func SetFromGOFLAGS(flags *flag.FlagSet) + func ShortPath(path string) string + func StartSigHandlers() + func Tool(toolName string) string + type Command struct + Commands []*Command + CustomFlags bool + Flag flag.FlagSet + Long string + Run func(ctx context.Context, cmd *Command, args []string) + Short string + UsageLine string + func (c *Command) LongName() string + func (c *Command) Name() string + func (c *Command) Runnable() bool + func (c *Command) Usage() + type StringsFlag []string + func (v *StringsFlag) Set(s string) error + func (v *StringsFlag) String() string