commit | ff0519d4cf5e7411f0ac96c0571c3d8589d8458c | [log] [tgz] |
---|---|---|
author | Michael Matloob <matloob@golang.org> | Mon Nov 19 17:59:29 2018 -0500 |
committer | Michael Matloob <matloob@golang.org> | Wed Nov 21 18:20:56 2018 +0000 |
tree | bc84fcf043b13396b893c4e04aab9f892cf13842 | |
parent | b5f2cae84da8243ade5d6a1d2b6c92ec1907be0f [diff] |
go/packages: change driver communication mechanism Pass in parameters to the driver in stdin rather than through argv. This allows us to more easily route parameters to the driver and add more parameters without breaking users. The driver doesn't need to have the same interface as go list, because it's unlikely the driver interface will converge with the go list interface. We still pass in the query "words" to the driver in the argv, because that's as good a place as any, but there's no "list" command. Question: should we add a "command" option to the driverRequest struct? Change-Id: Ifdbb3f84b6bfd04259f5ab63e756341d7f69de9b Reviewed-on: https://go-review.googlesource.com/c/150337 Reviewed-by: Ian Cottrell <iancottrell@google.com>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.