commit | 473961ec044c1c001df816e5edb29e4a31db4c01 | [log] [tgz] |
---|---|---|
author | Muir Manders <muir@mnd.rs> | Tue Jan 14 09:13:30 2020 -0800 |
committer | Rebecca Stambler <rstambler@golang.org> | Thu Jan 16 06:24:25 2020 +0000 |
tree | e562449f7227ac60a2444b9cfe51f78b8e48998b | |
parent | f80fb1dfa15c7ff8069faff74eb603bf0f63164c [diff] |
internal/lsp/source: improve completion for "range" and "<-" Now that we understand object "kind" for builtin generic functions, we can apply it to a couple more places as well: // prefer rangeable object kinds for i := range <> { } // prefer channels <- <> Change-Id: If9cfba3a06b3abde073a9d397000bb3f3b0e9853 Reviewed-on: https://go-review.googlesource.com/c/tools/+/214678 Run-TryBot: Muir Manders <muir@mnd.rs> 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.