commit | 8266eea4ea1a35e3218b0a1f5b3be92d9dcfbbc1 | [log] [tgz] |
---|---|---|
author | Heschi Kreinick <heschi@google.com> | Wed Oct 30 19:30:14 2019 -0400 |
committer | Heschi Kreinick <heschi@google.com> | Mon Nov 04 21:30:58 2019 +0000 |
tree | 36f5ed6dd1ab0955921c3ed03f869c7d0d98da83 | |
parent | 979d74e0bb73b20ca2aaac77c81a15b31df68a1e [diff] |
internal/imports: provide export completions for unimported packages Add a function that returns all the exported identifiers associated with a package name that doesn't have an import yet. This will allow completions like rand<> to return rand.Seed (from math/rand) and rand.Prime (from crypto/rand). Updates golang/go#31906 Change-Id: Iee290c786de263d42acbfabd76bf0edbf303afc9 Reviewed-on: https://go-review.googlesource.com/c/tools/+/204204 Run-TryBot: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> 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.