commit | 97ad0ed33101b39103eaf8aeab62b59dd1cfb89e | [log] [tgz] |
---|---|---|
author | Muir Manders <muir@mnd.rs> | Wed Nov 06 11:39:30 2019 -0800 |
committer | Rebecca Stambler <rstambler@golang.org> | Sat Nov 09 21:27:01 2019 +0000 |
tree | d1ba6b8c5d7ccba25130cecc2edfeb78474225cc | |
parent | 7d206e10da11c2c24ecc75fc000f2924f811b649 [diff] |
internal/lsp: improve completion in append() calls Add a special case for append() arguments so we infer the expected type from the append() context. For example: var foo []int foo = append(<>) We now infer the expected type at <> to be []int. We also support the variadicity of append(). Change-Id: Ie0ef0007907fcb7992f9697cb90970ce4d9a66b8 Reviewed-on: https://go-review.googlesource.com/c/tools/+/205606 Run-TryBot: Rebecca Stambler <rstambler@golang.org> 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.