commit | d456b1cd8c8645ed4775eda69782a3cfaf0429f3 | [log] [tgz] |
---|---|---|
author | Heschi Kreinick <heschi@google.com> | Tue Jan 21 14:51:24 2020 -0500 |
committer | Heschi Kreinick <heschi@google.com> | Tue Jan 21 20:03:11 2020 +0000 |
tree | acf66b633d8c149f862b00e4510f9e7834142f94 | |
parent | 62545537a93b9cf62e4644135f0612d1ae20ce08 [diff] |
internal/imports: pass dummy source for completion functions The goimports code tries to read source from disk if none is supplied, but the completion functions don't need source. Pass a dummy slice. Fixes golang/go#36671. Change-Id: Ieecc9ee75d39f8f165c7b9764ff49c8334a7fcd2 Reviewed-on: https://go-review.googlesource.com/c/tools/+/215681 Run-TryBot: Heschi Kreinick <heschi@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@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.