commit | cc6a436ffe6b424fffa1d91862c9b664d8407828 | [log] [tgz] |
---|---|---|
author | Ian Cottrell <iancottrell@google.com> | Wed Jan 23 14:16:43 2019 -0500 |
committer | Ian Cottrell <iancottrell@google.com> | Thu Jan 24 21:53:03 2019 +0000 |
tree | e5836af3b5e9d7fc63d7b64c099257a8e6274a89 | |
parent | 4e3518700c9886a1bcaa8eb1d795cf32bcc57792 [diff] |
internal/lsp: refactor definition and hover to share functionality The source package now exposes an Identifier method that returns information about an identifier, which can be used to implement Definition, TypeDefinition and Hover, as well as other command line functions in a later cl. Change-Id: I03629c2c940215b4e2c86ee45bee8a18b79ee0e1 Reviewed-on: https://go-review.googlesource.com/c/159337 Reviewed-by: Rebecca Stambler <rstambler@golang.org>
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.