commit | a044388aa56f5a38fbbd1edf55194a3b748b701f | [log] [tgz] |
---|---|---|
author | Muir Manders <muir@mnd.rs> | Mon Sep 16 19:07:16 2019 -0700 |
committer | Rebecca Stambler <rstambler@golang.org> | Wed Sep 25 13:41:13 2019 +0000 |
tree | a7e061fd58d0f33dc0ab4d47df8a146cca4221dd | |
parent | 92496828d16ca6ec6759c9250c2a97fd378210d5 [diff] |
internal/lsp: add literal completions for basic types Normally you don't want literal candidates for basic types (e.g. "int(0)") since you can type the literal value without the type name. One exception is if you are creating a named basic type that implements an interface. For example: http.Handle("/", http.FileServer(<>)) will now give "http.Dir()" as a candidate since http.Dir is a named string type that implements the required interface http.FileSystem. Change-Id: Id2470c45e469ea25cd0f9849cfdad19ac0e784bb Reviewed-on: https://go-review.googlesource.com/c/tools/+/195838 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.