commit | 4d9ae51c2468f6d6621b356e95df4bffa253f0b6 | [log] [tgz] |
---|---|---|
author | Ian Cottrell <iancottrell@google.com> | Tue Jun 04 01:04:18 2019 -0400 |
committer | Ian Cottrell <iancottrell@google.com> | Thu Jun 06 05:02:23 2019 +0000 |
tree | 0e04eaee6be4c165132cb4507e0c03431f6f378b | |
parent | 596a85b56b4961c2b37afc3d71e36e5ae4b90bed [diff] |
internal/lsp: remove source.FileContent On FileHandle Read now just returns the data hash and error This makes it more obvious that you should handle the error, rather than hiding it all in a struct. We also change the way we get and return content, the main source.File constructs now hold a FileHandle that then updates on invalidation Change-Id: I20be1b995355e948244342130eafec056df10081 Reviewed-on: https://go-review.googlesource.com/c/tools/+/180417 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.