{
  "name": "go",
  "description": "Go is a tool for managing Go source code",
  "subcommands": [
    {
      "name": "bug",
      "description": "Start a bug report"
    },
    {
      "name": "build",
      "description": "Compile packages and dependencies",
      "options": [
        {
          "names": [
            "-n"
          ],
          "description": "Print the commands but do not run them"
        },
        {
          "names": [
            "-v"
          ],
          "description": "Print the names of packages as they are compiled"
        },
        {
          "names": [
            "-x"
          ],
          "description": "Print the commands"
        },
        {
          "names": [
            "-tags"
          ],
          "description": "A comma-separated list of build tags to consider satisfied during the build",
          "takes_arg": true,
          "arg": {
            "name": "tags"
          }
        },
        {
          "names": [
            "-toolexec"
          ],
          "description": "A program to use to invoke toolchain programs like vet and asm",
          "takes_arg": true,
          "arg": {
            "name": "cmd"
          }
        },
        {
          "names": [
            "-a"
          ],
          "description": "Force rebuilding of packages that are already up-to-date"
        },
        {
          "names": [
            "-p"
          ],
          "description": "The number of programs, such as build commands or",
          "takes_arg": true,
          "arg": {
            "name": "programs"
          }
        },
        {
          "names": [
            "-race"
          ],
          "description": "Enable data race detection.\nSupported only on linux/amd64, freebsd/amd64, darwin/amd64, windows/amd64,\nlinux/ppc64le and linux/arm64 (only for 48-bit VMA)"
        },
        {
          "names": [
            "-msan"
          ],
          "description": "Enable interoperation with memory sanitizer.\nSupported only on linux/amd64, linux/arm64\nand only with Clang/LLVM as the host C compiler.\nOn linux/arm64, pie build mode will be used"
        },
        {
          "names": [
            "-work"
          ],
          "description": "Print the name of the temporary work directory and\ndo not delete it when exiting"
        },
        {
          "names": [
            "-asmflags"
          ],
          "description": "Arguments to pass on each go tool asm invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-buildmode"
          ],
          "description": "Build mode to use. See 'go help buildmode' for more",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "archive",
              "c-archive",
              "c-shared",
              "default",
              "shared",
              "exe",
              "pie",
              "plugin"
            ]
          }
        },
        {
          "names": [
            "-compiler"
          ],
          "description": "Name of compiler to use, as in runtime.Compiler (gccgo or gc)",
          "takes_arg": true,
          "arg": {
            "name": "name"
          }
        },
        {
          "names": [
            "-gccgoflags"
          ],
          "description": "Arguments to pass on each gccgo compiler/linker invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-gcflags"
          ],
          "description": "Arguments to pass on each go tool compile invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-installsuffix"
          ],
          "description": "A suffix to use in the name of the package installation directory,",
          "takes_arg": true,
          "arg": {
            "name": "suffix"
          }
        },
        {
          "names": [
            "-ldflags"
          ],
          "description": "Arguments to pass on each go tool link invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-linkshared"
          ],
          "description": "Build code that will be linked against shared libraries previously"
        },
        {
          "names": [
            "-mod"
          ],
          "description": "Module download mode to use: readonly, vendor, or mod",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "readonly",
              "vendor",
              "mod"
            ]
          }
        },
        {
          "names": [
            "-modcacherw"
          ],
          "description": "Leave newly-created directories in the module cache read-write"
        },
        {
          "names": [
            "-modfile"
          ],
          "description": "In module aware mode, read (and possibly write) an alternate go.mod file instead of the one in the module root directory",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-overlay"
          ],
          "description": "Read a JSON config file that provides an overlay for build operations",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-pkgdir"
          ],
          "description": "Install and load all packages from dir instead of the usual locations",
          "takes_arg": true,
          "arg": {
            "name": "dir"
          }
        },
        {
          "names": [
            "-trimpath"
          ],
          "description": "Remove all file system paths from the resulting executable"
        },
        {
          "names": [
            "-o"
          ],
          "description": "Write the resulting executable or object to the named output file or directory",
          "takes_arg": true,
          "arg": {
            "template": "filepaths"
          }
        },
        {
          "names": [
            "-i"
          ],
          "description": "Install the packages that are dependencies of the target"
        }
      ],
      "args": [
        {
          "name": "packages",
          "is_variadic": true,
          "template": "filepaths"
        }
      ]
    },
    {
      "name": "clean",
      "description": "Remove object files and cached files",
      "options": [
        {
          "names": [
            "-n"
          ],
          "description": "Print the commands but do not run them"
        },
        {
          "names": [
            "-v"
          ],
          "description": "Print the names of packages as they are compiled"
        },
        {
          "names": [
            "-x"
          ],
          "description": "Print the commands"
        },
        {
          "names": [
            "-tags"
          ],
          "description": "A comma-separated list of build tags to consider satisfied during the build",
          "takes_arg": true,
          "arg": {
            "name": "tags"
          }
        },
        {
          "names": [
            "-toolexec"
          ],
          "description": "A program to use to invoke toolchain programs like vet and asm",
          "takes_arg": true,
          "arg": {
            "name": "cmd"
          }
        },
        {
          "names": [
            "-a"
          ],
          "description": "Force rebuilding of packages that are already up-to-date"
        },
        {
          "names": [
            "-p"
          ],
          "description": "The number of programs, such as build commands or",
          "takes_arg": true,
          "arg": {
            "name": "programs"
          }
        },
        {
          "names": [
            "-race"
          ],
          "description": "Enable data race detection.\nSupported only on linux/amd64, freebsd/amd64, darwin/amd64, windows/amd64,\nlinux/ppc64le and linux/arm64 (only for 48-bit VMA)"
        },
        {
          "names": [
            "-msan"
          ],
          "description": "Enable interoperation with memory sanitizer.\nSupported only on linux/amd64, linux/arm64\nand only with Clang/LLVM as the host C compiler.\nOn linux/arm64, pie build mode will be used"
        },
        {
          "names": [
            "-work"
          ],
          "description": "Print the name of the temporary work directory and\ndo not delete it when exiting"
        },
        {
          "names": [
            "-asmflags"
          ],
          "description": "Arguments to pass on each go tool asm invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-buildmode"
          ],
          "description": "Build mode to use. See 'go help buildmode' for more",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "archive",
              "c-archive",
              "c-shared",
              "default",
              "shared",
              "exe",
              "pie",
              "plugin"
            ]
          }
        },
        {
          "names": [
            "-compiler"
          ],
          "description": "Name of compiler to use, as in runtime.Compiler (gccgo or gc)",
          "takes_arg": true,
          "arg": {
            "name": "name"
          }
        },
        {
          "names": [
            "-gccgoflags"
          ],
          "description": "Arguments to pass on each gccgo compiler/linker invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-gcflags"
          ],
          "description": "Arguments to pass on each go tool compile invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-installsuffix"
          ],
          "description": "A suffix to use in the name of the package installation directory,",
          "takes_arg": true,
          "arg": {
            "name": "suffix"
          }
        },
        {
          "names": [
            "-ldflags"
          ],
          "description": "Arguments to pass on each go tool link invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-linkshared"
          ],
          "description": "Build code that will be linked against shared libraries previously"
        },
        {
          "names": [
            "-mod"
          ],
          "description": "Module download mode to use: readonly, vendor, or mod",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "readonly",
              "vendor",
              "mod"
            ]
          }
        },
        {
          "names": [
            "-modcacherw"
          ],
          "description": "Leave newly-created directories in the module cache read-write"
        },
        {
          "names": [
            "-modfile"
          ],
          "description": "In module aware mode, read (and possibly write) an alternate go.mod file instead of the one in the module root directory",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-overlay"
          ],
          "description": "Read a JSON config file that provides an overlay for build operations",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-pkgdir"
          ],
          "description": "Install and load all packages from dir instead of the usual locations",
          "takes_arg": true,
          "arg": {
            "name": "dir"
          }
        },
        {
          "names": [
            "-trimpath"
          ],
          "description": "Remove all file system paths from the resulting executable"
        },
        {
          "names": [
            "-i"
          ],
          "description": "Remove the corresponding installed archive or binary"
        },
        {
          "names": [
            "-r"
          ],
          "description": "Apply recursively to all the dependencies of the packages named by the import paths"
        },
        {
          "names": [
            "-cache"
          ],
          "description": "Remove the entire go build cache"
        },
        {
          "names": [
            "-testcache"
          ],
          "description": "Expire all test results in the go build cache"
        },
        {
          "names": [
            "-modcache"
          ],
          "description": "Remove the entire module download cache, including unpacked source code of versioned dependencies"
        }
      ]
    },
    {
      "name": "doc",
      "description": "Show documentation for package or symbol",
      "options": [
        {
          "names": [
            "-all"
          ],
          "description": "Show all the documentation for the package"
        },
        {
          "names": [
            "-c"
          ],
          "description": "Respect case when matching symbols"
        },
        {
          "names": [
            "-cmd"
          ],
          "description": "Treat a command (package main) like a regular package. Otherwise package main's exported symbols are hidden when showing the package's top-level documentation"
        },
        {
          "names": [
            "-short"
          ],
          "description": "One-line representation for each symbol"
        },
        {
          "names": [
            "-src"
          ],
          "description": "Show the full source code for the symbol"
        },
        {
          "names": [
            "-u"
          ],
          "description": "Show documentation for unexported as well as exported symbols, methods, and fields"
        }
      ],
      "args": [
        {
          "name": "package"
        }
      ]
    },
    {
      "name": "env",
      "description": "Print Go environment information",
      "options": [
        {
          "names": [
            "-json"
          ],
          "description": "Prints the environment in JSON format instead of as a shell script"
        },
        {
          "names": [
            "-u"
          ],
          "description": "Unset the default setting for the named environment variables",
          "takes_arg": true,
          "arg": {
            "is_variadic": true
          }
        },
        {
          "names": [
            "-w"
          ],
          "description": "Change the default settings of the named environment variables to the given values",
          "takes_arg": true,
          "arg": {
            "is_variadic": true
          }
        }
      ]
    },
    {
      "name": "fix",
      "description": "Update packages to use new APIs",
      "args": [
        {
          "name": "packages",
          "is_variadic": true,
          "template": "filepaths"
        }
      ]
    },
    {
      "name": "fmt",
      "description": "Gofmt (reformat) package sources",
      "options": [
        {
          "names": [
            "-n"
          ],
          "description": "Print the commands that would be executed"
        },
        {
          "names": [
            "-x"
          ],
          "description": "Print the commands as they are executed"
        },
        {
          "names": [
            "-mod"
          ],
          "description": "Which module download mode to use",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "readonly",
              "vendor"
            ]
          }
        }
      ],
      "args": [
        {
          "name": "packages",
          "is_variadic": true,
          "template": "filepaths"
        }
      ]
    },
    {
      "name": "generate",
      "description": "Generate Go files by processing source",
      "options": [
        {
          "names": [
            "-n"
          ],
          "description": "Print the commands but do not run them"
        },
        {
          "names": [
            "-v"
          ],
          "description": "Print the names of packages as they are compiled"
        },
        {
          "names": [
            "-x"
          ],
          "description": "Print the commands"
        },
        {
          "names": [
            "-tags"
          ],
          "description": "A comma-separated list of build tags to consider satisfied during the build",
          "takes_arg": true,
          "arg": {
            "name": "tags"
          }
        },
        {
          "names": [
            "-toolexec"
          ],
          "description": "A program to use to invoke toolchain programs like vet and asm",
          "takes_arg": true,
          "arg": {
            "name": "cmd"
          }
        },
        {
          "names": [
            "-a"
          ],
          "description": "Force rebuilding of packages that are already up-to-date"
        },
        {
          "names": [
            "-p"
          ],
          "description": "The number of programs, such as build commands or",
          "takes_arg": true,
          "arg": {
            "name": "programs"
          }
        },
        {
          "names": [
            "-race"
          ],
          "description": "Enable data race detection.\nSupported only on linux/amd64, freebsd/amd64, darwin/amd64, windows/amd64,\nlinux/ppc64le and linux/arm64 (only for 48-bit VMA)"
        },
        {
          "names": [
            "-msan"
          ],
          "description": "Enable interoperation with memory sanitizer.\nSupported only on linux/amd64, linux/arm64\nand only with Clang/LLVM as the host C compiler.\nOn linux/arm64, pie build mode will be used"
        },
        {
          "names": [
            "-work"
          ],
          "description": "Print the name of the temporary work directory and\ndo not delete it when exiting"
        },
        {
          "names": [
            "-asmflags"
          ],
          "description": "Arguments to pass on each go tool asm invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-buildmode"
          ],
          "description": "Build mode to use. See 'go help buildmode' for more",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "archive",
              "c-archive",
              "c-shared",
              "default",
              "shared",
              "exe",
              "pie",
              "plugin"
            ]
          }
        },
        {
          "names": [
            "-compiler"
          ],
          "description": "Name of compiler to use, as in runtime.Compiler (gccgo or gc)",
          "takes_arg": true,
          "arg": {
            "name": "name"
          }
        },
        {
          "names": [
            "-gccgoflags"
          ],
          "description": "Arguments to pass on each gccgo compiler/linker invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-gcflags"
          ],
          "description": "Arguments to pass on each go tool compile invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-installsuffix"
          ],
          "description": "A suffix to use in the name of the package installation directory,",
          "takes_arg": true,
          "arg": {
            "name": "suffix"
          }
        },
        {
          "names": [
            "-ldflags"
          ],
          "description": "Arguments to pass on each go tool link invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-linkshared"
          ],
          "description": "Build code that will be linked against shared libraries previously"
        },
        {
          "names": [
            "-mod"
          ],
          "description": "Module download mode to use: readonly, vendor, or mod",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "readonly",
              "vendor",
              "mod"
            ]
          }
        },
        {
          "names": [
            "-modcacherw"
          ],
          "description": "Leave newly-created directories in the module cache read-write"
        },
        {
          "names": [
            "-modfile"
          ],
          "description": "In module aware mode, read (and possibly write) an alternate go.mod file instead of the one in the module root directory",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-overlay"
          ],
          "description": "Read a JSON config file that provides an overlay for build operations",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-pkgdir"
          ],
          "description": "Install and load all packages from dir instead of the usual locations",
          "takes_arg": true,
          "arg": {
            "name": "dir"
          }
        },
        {
          "names": [
            "-trimpath"
          ],
          "description": "Remove all file system paths from the resulting executable"
        },
        {
          "names": [
            "-run"
          ],
          "description": "Specifies a regular expression to select directives whose full original source text matches the expression"
        }
      ]
    },
    {
      "name": "get",
      "description": "Add dependencies to current module and install them",
      "options": [
        {
          "names": [
            "-n"
          ],
          "description": "Print the commands but do not run them"
        },
        {
          "names": [
            "-v"
          ],
          "description": "Print the names of packages as they are compiled"
        },
        {
          "names": [
            "-x"
          ],
          "description": "Print the commands"
        },
        {
          "names": [
            "-tags"
          ],
          "description": "A comma-separated list of build tags to consider satisfied during the build",
          "takes_arg": true,
          "arg": {
            "name": "tags"
          }
        },
        {
          "names": [
            "-toolexec"
          ],
          "description": "A program to use to invoke toolchain programs like vet and asm",
          "takes_arg": true,
          "arg": {
            "name": "cmd"
          }
        },
        {
          "names": [
            "-a"
          ],
          "description": "Force rebuilding of packages that are already up-to-date"
        },
        {
          "names": [
            "-p"
          ],
          "description": "The number of programs, such as build commands or",
          "takes_arg": true,
          "arg": {
            "name": "programs"
          }
        },
        {
          "names": [
            "-race"
          ],
          "description": "Enable data race detection.\nSupported only on linux/amd64, freebsd/amd64, darwin/amd64, windows/amd64,\nlinux/ppc64le and linux/arm64 (only for 48-bit VMA)"
        },
        {
          "names": [
            "-msan"
          ],
          "description": "Enable interoperation with memory sanitizer.\nSupported only on linux/amd64, linux/arm64\nand only with Clang/LLVM as the host C compiler.\nOn linux/arm64, pie build mode will be used"
        },
        {
          "names": [
            "-work"
          ],
          "description": "Print the name of the temporary work directory and\ndo not delete it when exiting"
        },
        {
          "names": [
            "-asmflags"
          ],
          "description": "Arguments to pass on each go tool asm invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-buildmode"
          ],
          "description": "Build mode to use. See 'go help buildmode' for more",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "archive",
              "c-archive",
              "c-shared",
              "default",
              "shared",
              "exe",
              "pie",
              "plugin"
            ]
          }
        },
        {
          "names": [
            "-compiler"
          ],
          "description": "Name of compiler to use, as in runtime.Compiler (gccgo or gc)",
          "takes_arg": true,
          "arg": {
            "name": "name"
          }
        },
        {
          "names": [
            "-gccgoflags"
          ],
          "description": "Arguments to pass on each gccgo compiler/linker invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-gcflags"
          ],
          "description": "Arguments to pass on each go tool compile invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-installsuffix"
          ],
          "description": "A suffix to use in the name of the package installation directory,",
          "takes_arg": true,
          "arg": {
            "name": "suffix"
          }
        },
        {
          "names": [
            "-ldflags"
          ],
          "description": "Arguments to pass on each go tool link invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-linkshared"
          ],
          "description": "Build code that will be linked against shared libraries previously"
        },
        {
          "names": [
            "-mod"
          ],
          "description": "Module download mode to use: readonly, vendor, or mod",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "readonly",
              "vendor",
              "mod"
            ]
          }
        },
        {
          "names": [
            "-modcacherw"
          ],
          "description": "Leave newly-created directories in the module cache read-write"
        },
        {
          "names": [
            "-modfile"
          ],
          "description": "In module aware mode, read (and possibly write) an alternate go.mod file instead of the one in the module root directory",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-overlay"
          ],
          "description": "Read a JSON config file that provides an overlay for build operations",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-pkgdir"
          ],
          "description": "Install and load all packages from dir instead of the usual locations",
          "takes_arg": true,
          "arg": {
            "name": "dir"
          }
        },
        {
          "names": [
            "-trimpath"
          ],
          "description": "Remove all file system paths from the resulting executable"
        },
        {
          "names": [
            "-t"
          ],
          "description": "Modules needed to build tests of packages specified on the command line"
        },
        {
          "names": [
            "-u"
          ],
          "description": "Update to newer minor or patch releases when available",
          "takes_arg": true,
          "arg": {
            "suggestions": [
              "patch"
            ]
          }
        },
        {
          "names": [
            "-insecure"
          ],
          "description": "Permit fetching from insecure origins"
        },
        {
          "names": [
            "-d"
          ],
          "description": "Only update go.mod and download source code needed to build packages"
        }
      ],
      "args": [
        {
          "name": "url"
        }
      ]
    },
    {
      "name": "install",
      "description": "Compile and install packages and dependencies",
      "options": [
        {
          "names": [
            "-n"
          ],
          "description": "Print the commands but do not run them"
        },
        {
          "names": [
            "-v"
          ],
          "description": "Print the names of packages as they are compiled"
        },
        {
          "names": [
            "-x"
          ],
          "description": "Print the commands"
        },
        {
          "names": [
            "-tags"
          ],
          "description": "A comma-separated list of build tags to consider satisfied during the build",
          "takes_arg": true,
          "arg": {
            "name": "tags"
          }
        },
        {
          "names": [
            "-toolexec"
          ],
          "description": "A program to use to invoke toolchain programs like vet and asm",
          "takes_arg": true,
          "arg": {
            "name": "cmd"
          }
        },
        {
          "names": [
            "-a"
          ],
          "description": "Force rebuilding of packages that are already up-to-date"
        },
        {
          "names": [
            "-p"
          ],
          "description": "The number of programs, such as build commands or",
          "takes_arg": true,
          "arg": {
            "name": "programs"
          }
        },
        {
          "names": [
            "-race"
          ],
          "description": "Enable data race detection.\nSupported only on linux/amd64, freebsd/amd64, darwin/amd64, windows/amd64,\nlinux/ppc64le and linux/arm64 (only for 48-bit VMA)"
        },
        {
          "names": [
            "-msan"
          ],
          "description": "Enable interoperation with memory sanitizer.\nSupported only on linux/amd64, linux/arm64\nand only with Clang/LLVM as the host C compiler.\nOn linux/arm64, pie build mode will be used"
        },
        {
          "names": [
            "-work"
          ],
          "description": "Print the name of the temporary work directory and\ndo not delete it when exiting"
        },
        {
          "names": [
            "-asmflags"
          ],
          "description": "Arguments to pass on each go tool asm invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-buildmode"
          ],
          "description": "Build mode to use. See 'go help buildmode' for more",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "archive",
              "c-archive",
              "c-shared",
              "default",
              "shared",
              "exe",
              "pie",
              "plugin"
            ]
          }
        },
        {
          "names": [
            "-compiler"
          ],
          "description": "Name of compiler to use, as in runtime.Compiler (gccgo or gc)",
          "takes_arg": true,
          "arg": {
            "name": "name"
          }
        },
        {
          "names": [
            "-gccgoflags"
          ],
          "description": "Arguments to pass on each gccgo compiler/linker invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-gcflags"
          ],
          "description": "Arguments to pass on each go tool compile invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-installsuffix"
          ],
          "description": "A suffix to use in the name of the package installation directory,",
          "takes_arg": true,
          "arg": {
            "name": "suffix"
          }
        },
        {
          "names": [
            "-ldflags"
          ],
          "description": "Arguments to pass on each go tool link invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-linkshared"
          ],
          "description": "Build code that will be linked against shared libraries previously"
        },
        {
          "names": [
            "-mod"
          ],
          "description": "Module download mode to use: readonly, vendor, or mod",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "readonly",
              "vendor",
              "mod"
            ]
          }
        },
        {
          "names": [
            "-modcacherw"
          ],
          "description": "Leave newly-created directories in the module cache read-write"
        },
        {
          "names": [
            "-modfile"
          ],
          "description": "In module aware mode, read (and possibly write) an alternate go.mod file instead of the one in the module root directory",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-overlay"
          ],
          "description": "Read a JSON config file that provides an overlay for build operations",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-pkgdir"
          ],
          "description": "Install and load all packages from dir instead of the usual locations",
          "takes_arg": true,
          "arg": {
            "name": "dir"
          }
        },
        {
          "names": [
            "-trimpath"
          ],
          "description": "Remove all file system paths from the resulting executable"
        }
      ],
      "args": [
        {
          "name": "packages",
          "is_variadic": true
        }
      ]
    },
    {
      "name": "list",
      "description": "List packages or modules",
      "options": [
        {
          "names": [
            "-n"
          ],
          "description": "Print the commands but do not run them"
        },
        {
          "names": [
            "-v"
          ],
          "description": "Print the names of packages as they are compiled"
        },
        {
          "names": [
            "-x"
          ],
          "description": "Print the commands"
        },
        {
          "names": [
            "-tags"
          ],
          "description": "A comma-separated list of build tags to consider satisfied during the build",
          "takes_arg": true,
          "arg": {
            "name": "tags"
          }
        },
        {
          "names": [
            "-toolexec"
          ],
          "description": "A program to use to invoke toolchain programs like vet and asm",
          "takes_arg": true,
          "arg": {
            "name": "cmd"
          }
        },
        {
          "names": [
            "-a"
          ],
          "description": "Force rebuilding of packages that are already up-to-date"
        },
        {
          "names": [
            "-p"
          ],
          "description": "The number of programs, such as build commands or",
          "takes_arg": true,
          "arg": {
            "name": "programs"
          }
        },
        {
          "names": [
            "-race"
          ],
          "description": "Enable data race detection.\nSupported only on linux/amd64, freebsd/amd64, darwin/amd64, windows/amd64,\nlinux/ppc64le and linux/arm64 (only for 48-bit VMA)"
        },
        {
          "names": [
            "-msan"
          ],
          "description": "Enable interoperation with memory sanitizer.\nSupported only on linux/amd64, linux/arm64\nand only with Clang/LLVM as the host C compiler.\nOn linux/arm64, pie build mode will be used"
        },
        {
          "names": [
            "-work"
          ],
          "description": "Print the name of the temporary work directory and\ndo not delete it when exiting"
        },
        {
          "names": [
            "-asmflags"
          ],
          "description": "Arguments to pass on each go tool asm invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-buildmode"
          ],
          "description": "Build mode to use. See 'go help buildmode' for more",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "archive",
              "c-archive",
              "c-shared",
              "default",
              "shared",
              "exe",
              "pie",
              "plugin"
            ]
          }
        },
        {
          "names": [
            "-compiler"
          ],
          "description": "Name of compiler to use, as in runtime.Compiler (gccgo or gc)",
          "takes_arg": true,
          "arg": {
            "name": "name"
          }
        },
        {
          "names": [
            "-gccgoflags"
          ],
          "description": "Arguments to pass on each gccgo compiler/linker invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-gcflags"
          ],
          "description": "Arguments to pass on each go tool compile invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-installsuffix"
          ],
          "description": "A suffix to use in the name of the package installation directory,",
          "takes_arg": true,
          "arg": {
            "name": "suffix"
          }
        },
        {
          "names": [
            "-ldflags"
          ],
          "description": "Arguments to pass on each go tool link invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-linkshared"
          ],
          "description": "Build code that will be linked against shared libraries previously"
        },
        {
          "names": [
            "-mod"
          ],
          "description": "Module download mode to use: readonly, vendor, or mod",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "readonly",
              "vendor",
              "mod"
            ]
          }
        },
        {
          "names": [
            "-modcacherw"
          ],
          "description": "Leave newly-created directories in the module cache read-write"
        },
        {
          "names": [
            "-modfile"
          ],
          "description": "In module aware mode, read (and possibly write) an alternate go.mod file instead of the one in the module root directory",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-overlay"
          ],
          "description": "Read a JSON config file that provides an overlay for build operations",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-pkgdir"
          ],
          "description": "Install and load all packages from dir instead of the usual locations",
          "takes_arg": true,
          "arg": {
            "name": "dir"
          }
        },
        {
          "names": [
            "-trimpath"
          ],
          "description": "Remove all file system paths from the resulting executable"
        },
        {
          "names": [
            "-compiled"
          ],
          "description": "Set CompiledGoFiles to the Go source files"
        },
        {
          "names": [
            "-deps"
          ],
          "description": "Terate over not just the named packages but also all their dependencies"
        },
        {
          "names": [
            "-f"
          ],
          "description": "Specify an alternate format for the list",
          "takes_arg": true,
          "arg": {
            "name": "format"
          }
        },
        {
          "names": [
            "-e"
          ],
          "description": "Processes the erroneous packages with the usual printing"
        },
        {
          "names": [
            "-export"
          ],
          "description": "Set the Export field to the name of a file containing up-to-date export information for the given package"
        },
        {
          "names": [
            "-find"
          ],
          "description": "Identify the named packages but not resolve their dependencies"
        },
        {
          "names": [
            "-test"
          ],
          "description": "Report test binaries"
        },
        {
          "names": [
            "-m"
          ],
          "description": "List modules instead of packages"
        },
        {
          "names": [
            "-u"
          ],
          "description": "Add information about available upgrades"
        },
        {
          "names": [
            "-versions"
          ],
          "description": "Set the Module's Versions field to a list of all known versions of that module"
        },
        {
          "names": [
            "-retracted"
          ],
          "description": "Eport information about retracted module versions"
        }
      ]
    },
    {
      "name": "mod",
      "description": "Module maintenance",
      "subcommands": [
        {
          "name": "download",
          "description": "Download the named modules into the module cache",
          "options": [
            {
              "names": [
                "-json"
              ],
              "description": "Print a sequence of JSON objects to standard output, describing each downloaded module (or failure)"
            },
            {
              "names": [
                "-x"
              ],
              "description": "Print the commands download executes to standard error"
            }
          ],
          "args": [
            {
              "name": "modules",
              "is_variadic": true
            }
          ]
        },
        {
          "name": "edit",
          "description": "Edit and format go.mod files",
          "options": [
            {
              "names": [
                "-module"
              ],
              "description": "Change the module's path"
            },
            {
              "names": [
                "-go"
              ],
              "description": "Set the expected Go language version",
              "takes_arg": true,
              "arg": {
                "name": "version"
              }
            },
            {
              "names": [
                "-require"
              ],
              "description": "Add a requirement on the given module",
              "takes_arg": true,
              "arg": {
                "name": "path"
              }
            },
            {
              "names": [
                "-droprequire"
              ],
              "description": "Drop a requirement on the given module",
              "takes_arg": true,
              "arg": {
                "name": "path"
              }
            },
            {
              "names": [
                "-exclude"
              ],
              "description": "Add an exclusion on the given module",
              "takes_arg": true,
              "arg": {
                "name": "path"
              }
            },
            {
              "names": [
                "-dropexclude"
              ],
              "description": "Drop an exclusion on the given module",
              "takes_arg": true,
              "arg": {
                "name": "path"
              }
            },
            {
              "names": [
                "-replace"
              ],
              "description": "Add a replacement of the given module path and version pair",
              "takes_arg": true,
              "arg": {
                "name": "path"
              }
            },
            {
              "names": [
                "-dropreplace"
              ],
              "description": "Drops a replacement of the given module path and version pair",
              "takes_arg": true,
              "arg": {
                "name": "path"
              }
            },
            {
              "names": [
                "-retract"
              ],
              "description": "Add a retraction for the given version",
              "takes_arg": true,
              "arg": {
                "name": "version"
              }
            },
            {
              "names": [
                "-dropretract"
              ],
              "description": "Drop a retraction for the given version",
              "takes_arg": true,
              "arg": {
                "name": "version"
              }
            },
            {
              "names": [
                "-fmt"
              ],
              "description": "Format the go.mod file without making other changes"
            },
            {
              "names": [
                "-print"
              ],
              "description": "Print the final go.mod in its text format instead of writing it back to disk"
            },
            {
              "names": [
                "-json"
              ],
              "description": "Print the final go.mod in JSON format instead of writing it back to disk in text forma"
            }
          ]
        },
        {
          "name": "graph",
          "description": "Print the module requirement graph"
        },
        {
          "name": "init",
          "description": "Initialize and write a new go.mod file in the current directory",
          "args": [
            {
              "name": "module path"
            }
          ]
        },
        {
          "name": "tidy",
          "description": "Ensure that the go.mod file matches the source code in the module",
          "options": [
            {
              "names": [
                "-e"
              ],
              "description": "Attempt to proceed despite errors encountered while loading packages"
            },
            {
              "names": [
                "-v"
              ],
              "description": "Print information about removed modules"
            }
          ]
        },
        {
          "name": "vendor",
          "description": "Construct a directory named vendor in the main module's root directory",
          "options": [
            {
              "names": [
                "-e"
              ],
              "description": "Attempt to proceed despite errors encountered while loading packages"
            },
            {
              "names": [
                "-v"
              ],
              "description": "Print information about removed modules"
            }
          ]
        },
        {
          "name": "verify",
          "description": "Check that dependencies of the main module stored in the module cache have not been modified since they were downloaded"
        },
        {
          "name": "why",
          "description": "Show a shortest path in the import graph from the main module to each of the listed packages",
          "options": [
            {
              "names": [
                "-m"
              ],
              "description": "Treat its arguments as a list of modules"
            },
            {
              "names": [
                "-vendor"
              ],
              "description": "Ignore imports in tests of packages outside the main module"
            }
          ],
          "args": [
            {
              "name": "packages",
              "is_variadic": true
            }
          ]
        }
      ]
    },
    {
      "name": "work",
      "description": "Workspace maintenance",
      "subcommands": [
        {
          "name": "edit",
          "description": "Edit go.work from tools or scripts",
          "options": [
            {
              "names": [
                "-fmt"
              ],
              "description": "The -fmt flag reformats the go.work file without making other changes. This reformatting is also implied by any other modifications that use or rewrite the go.mod file. The only time this flag is need"
            },
            {
              "names": [
                "-use"
              ],
              "description": "The -use=path and -dropuse=path flags add and drop a use directive from the go.work file's set of module directories",
              "takes_arg": true,
              "arg": {
                "name": "path"
              }
            },
            {
              "names": [
                "-dropuse"
              ],
              "description": "The -use=path and -dropuse=path flags add and drop a use directive from the go.work file's set of module directories",
              "takes_arg": true,
              "arg": {
                "name": "path"
              }
            },
            {
              "names": [
                "-replace"
              ],
              "description": "The -replace=old[@v]=new[@v] flag adds a replacement of the given module path and version pair. If the @v in old@v is omitted, a replacement without a version on the left side is added, which applies ",
              "takes_arg": true,
              "arg": {
                "name": "old[@v]=new[@v]"
              }
            },
            {
              "names": [
                "-dropreplace"
              ],
              "description": "The -dropreplace=old[@v] flag drops a replacement of the given module path and version pair. If the @v is omitted, a replacement without a version on the left side is dropped",
              "takes_arg": true,
              "arg": {
                "name": "old[@v]"
              }
            },
            {
              "names": [
                "-go"
              ],
              "description": "Set the expected Go language version",
              "takes_arg": true,
              "arg": {
                "name": "version"
              }
            },
            {
              "names": [
                "-print"
              ],
              "description": "The -print flag prints the final go.work in its text format instead of writing it back to go.mod"
            },
            {
              "names": [
                "-json"
              ],
              "description": "The -json flag prints the final go.work file in JSON format instead of writing it back to go.mod"
            }
          ]
        },
        {
          "name": "init",
          "description": "Initialize workspace file",
          "args": [
            {
              "name": "moddirs",
              "is_variadic": true
            }
          ]
        },
        {
          "name": "sync",
          "description": "Sync workspace build list to modules"
        },
        {
          "name": "use",
          "description": "Add modules to workspace file",
          "options": [
            {
              "names": [
                "-r"
              ],
              "description": "The -r flag searches recursively for modules in the argument directories, and the use command operates as if each of the directories were specified as arguments: namely, use directives will be added f"
            }
          ],
          "args": [
            {
              "name": "moddirs",
              "is_variadic": true
            }
          ]
        }
      ]
    },
    {
      "name": "run",
      "description": "Compile and run Go program",
      "options": [
        {
          "names": [
            "-n"
          ],
          "description": "Print the commands but do not run them"
        },
        {
          "names": [
            "-v"
          ],
          "description": "Print the names of packages as they are compiled"
        },
        {
          "names": [
            "-x"
          ],
          "description": "Print the commands"
        },
        {
          "names": [
            "-tags"
          ],
          "description": "A comma-separated list of build tags to consider satisfied during the build",
          "takes_arg": true,
          "arg": {
            "name": "tags"
          }
        },
        {
          "names": [
            "-toolexec"
          ],
          "description": "A program to use to invoke toolchain programs like vet and asm",
          "takes_arg": true,
          "arg": {
            "name": "cmd"
          }
        },
        {
          "names": [
            "-a"
          ],
          "description": "Force rebuilding of packages that are already up-to-date"
        },
        {
          "names": [
            "-p"
          ],
          "description": "The number of programs, such as build commands or",
          "takes_arg": true,
          "arg": {
            "name": "programs"
          }
        },
        {
          "names": [
            "-race"
          ],
          "description": "Enable data race detection.\nSupported only on linux/amd64, freebsd/amd64, darwin/amd64, windows/amd64,\nlinux/ppc64le and linux/arm64 (only for 48-bit VMA)"
        },
        {
          "names": [
            "-msan"
          ],
          "description": "Enable interoperation with memory sanitizer.\nSupported only on linux/amd64, linux/arm64\nand only with Clang/LLVM as the host C compiler.\nOn linux/arm64, pie build mode will be used"
        },
        {
          "names": [
            "-work"
          ],
          "description": "Print the name of the temporary work directory and\ndo not delete it when exiting"
        },
        {
          "names": [
            "-asmflags"
          ],
          "description": "Arguments to pass on each go tool asm invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-buildmode"
          ],
          "description": "Build mode to use. See 'go help buildmode' for more",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "archive",
              "c-archive",
              "c-shared",
              "default",
              "shared",
              "exe",
              "pie",
              "plugin"
            ]
          }
        },
        {
          "names": [
            "-compiler"
          ],
          "description": "Name of compiler to use, as in runtime.Compiler (gccgo or gc)",
          "takes_arg": true,
          "arg": {
            "name": "name"
          }
        },
        {
          "names": [
            "-gccgoflags"
          ],
          "description": "Arguments to pass on each gccgo compiler/linker invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-gcflags"
          ],
          "description": "Arguments to pass on each go tool compile invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-installsuffix"
          ],
          "description": "A suffix to use in the name of the package installation directory,",
          "takes_arg": true,
          "arg": {
            "name": "suffix"
          }
        },
        {
          "names": [
            "-ldflags"
          ],
          "description": "Arguments to pass on each go tool link invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-linkshared"
          ],
          "description": "Build code that will be linked against shared libraries previously"
        },
        {
          "names": [
            "-mod"
          ],
          "description": "Module download mode to use: readonly, vendor, or mod",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "readonly",
              "vendor",
              "mod"
            ]
          }
        },
        {
          "names": [
            "-modcacherw"
          ],
          "description": "Leave newly-created directories in the module cache read-write"
        },
        {
          "names": [
            "-modfile"
          ],
          "description": "In module aware mode, read (and possibly write) an alternate go.mod file instead of the one in the module root directory",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-overlay"
          ],
          "description": "Read a JSON config file that provides an overlay for build operations",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-pkgdir"
          ],
          "description": "Install and load all packages from dir instead of the usual locations",
          "takes_arg": true,
          "arg": {
            "name": "dir"
          }
        },
        {
          "names": [
            "-trimpath"
          ],
          "description": "Remove all file system paths from the resulting executable"
        },
        {
          "names": [
            "-exec"
          ],
          "description": "Invoke the binary using xprog",
          "takes_arg": true
        }
      ],
      "args": [
        {
          "name": "package"
        }
      ]
    },
    {
      "name": "test",
      "description": "Test packages",
      "options": [
        {
          "names": [
            "-n"
          ],
          "description": "Print the commands but do not run them"
        },
        {
          "names": [
            "-v"
          ],
          "description": "Print the names of packages as they are compiled"
        },
        {
          "names": [
            "-x"
          ],
          "description": "Print the commands"
        },
        {
          "names": [
            "-tags"
          ],
          "description": "A comma-separated list of build tags to consider satisfied during the build",
          "takes_arg": true,
          "arg": {
            "name": "tags"
          }
        },
        {
          "names": [
            "-toolexec"
          ],
          "description": "A program to use to invoke toolchain programs like vet and asm",
          "takes_arg": true,
          "arg": {
            "name": "cmd"
          }
        },
        {
          "names": [
            "-a"
          ],
          "description": "Force rebuilding of packages that are already up-to-date"
        },
        {
          "names": [
            "-p"
          ],
          "description": "The number of programs, such as build commands or",
          "takes_arg": true,
          "arg": {
            "name": "programs"
          }
        },
        {
          "names": [
            "-race"
          ],
          "description": "Enable data race detection.\nSupported only on linux/amd64, freebsd/amd64, darwin/amd64, windows/amd64,\nlinux/ppc64le and linux/arm64 (only for 48-bit VMA)"
        },
        {
          "names": [
            "-msan"
          ],
          "description": "Enable interoperation with memory sanitizer.\nSupported only on linux/amd64, linux/arm64\nand only with Clang/LLVM as the host C compiler.\nOn linux/arm64, pie build mode will be used"
        },
        {
          "names": [
            "-work"
          ],
          "description": "Print the name of the temporary work directory and\ndo not delete it when exiting"
        },
        {
          "names": [
            "-asmflags"
          ],
          "description": "Arguments to pass on each go tool asm invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-buildmode"
          ],
          "description": "Build mode to use. See 'go help buildmode' for more",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "archive",
              "c-archive",
              "c-shared",
              "default",
              "shared",
              "exe",
              "pie",
              "plugin"
            ]
          }
        },
        {
          "names": [
            "-compiler"
          ],
          "description": "Name of compiler to use, as in runtime.Compiler (gccgo or gc)",
          "takes_arg": true,
          "arg": {
            "name": "name"
          }
        },
        {
          "names": [
            "-gccgoflags"
          ],
          "description": "Arguments to pass on each gccgo compiler/linker invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-gcflags"
          ],
          "description": "Arguments to pass on each go tool compile invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-installsuffix"
          ],
          "description": "A suffix to use in the name of the package installation directory,",
          "takes_arg": true,
          "arg": {
            "name": "suffix"
          }
        },
        {
          "names": [
            "-ldflags"
          ],
          "description": "Arguments to pass on each go tool link invocation",
          "takes_arg": true,
          "arg": {
            "name": "flag",
            "is_variadic": true
          }
        },
        {
          "names": [
            "-linkshared"
          ],
          "description": "Build code that will be linked against shared libraries previously"
        },
        {
          "names": [
            "-mod"
          ],
          "description": "Module download mode to use: readonly, vendor, or mod",
          "takes_arg": true,
          "arg": {
            "name": "mode",
            "suggestions": [
              "readonly",
              "vendor",
              "mod"
            ]
          }
        },
        {
          "names": [
            "-modcacherw"
          ],
          "description": "Leave newly-created directories in the module cache read-write"
        },
        {
          "names": [
            "-modfile"
          ],
          "description": "In module aware mode, read (and possibly write) an alternate go.mod file instead of the one in the module root directory",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-overlay"
          ],
          "description": "Read a JSON config file that provides an overlay for build operations",
          "takes_arg": true,
          "arg": {
            "name": "file"
          }
        },
        {
          "names": [
            "-pkgdir"
          ],
          "description": "Install and load all packages from dir instead of the usual locations",
          "takes_arg": true,
          "arg": {
            "name": "dir"
          }
        },
        {
          "names": [
            "-trimpath"
          ],
          "description": "Remove all file system paths from the resulting executable"
        },
        {
          "names": [
            "-args"
          ],
          "description": "Pass the remainder of the command line to the test binary",
          "takes_arg": true,
          "arg": {
            "is_variadic": true
          }
        },
        {
          "names": [
            "-c"
          ],
          "description": "Compile the test binary to pkg.test but do not run it"
        },
        {
          "names": [
            "-exec"
          ],
          "description": "Invoke the binary using xprog",
          "takes_arg": true
        },
        {
          "names": [
            "-i"
          ],
          "description": "Install packages that are dependencies of the test"
        },
        {
          "names": [
            "-json"
          ],
          "description": "Convert test output to JSON suitable"
        },
        {
          "names": [
            "-o"
          ],
          "description": "Compile the test binary to the named file",
          "takes_arg": true,
          "arg": {
            "name": "file",
            "template": "filepaths"
          }
        }
      ]
    },
    {
      "name": "tool",
      "description": "Run specified go tool",
      "options": [
        {
          "names": [
            "-n"
          ],
          "description": "Print the command that would be executed but not execute it"
        }
      ],
      "args": [
        {
          "name": "tool"
        }
      ]
    },
    {
      "name": "version",
      "description": "Print Go version",
      "options": [
        {
          "names": [
            "-m"
          ],
          "description": "Print each executable's embedded module version information"
        },
        {
          "names": [
            "-v"
          ],
          "description": "Report unrecognized files"
        }
      ],
      "args": [
        {
          "name": "file"
        }
      ]
    },
    {
      "name": "vet",
      "description": "Report likely mistakes in packages",
      "options": [
        {
          "names": [
            "-n"
          ],
          "description": "Print the commands but do not run them"
        },
        {
          "names": [
            "-v"
          ],
          "description": "Print the names of packages as they are compiled"
        },
        {
          "names": [
            "-x"
          ],
          "description": "Print the commands"
        },
        {
          "names": [
            "-tags"
          ],
          "description": "A comma-separated list of build tags to consider satisfied during the build",
          "takes_arg": true,
          "arg": {
            "name": "tags"
          }
        },
        {
          "names": [
            "-toolexec"
          ],
          "description": "A program to use to invoke toolchain programs like vet and asm",
          "takes_arg": true,
          "arg": {
            "name": "cmd"
          }
        },
        {
          "names": [
            "-vettool"
          ],
          "description": "Select a different analysis tool with alternative or additional checks",
          "takes_arg": true,
          "arg": {
            "name": "tool"
          }
        }
      ],
      "args": [
        {
          "name": "package"
        }
      ]
    }
  ]
}
