commit | 0c506a27403cdd01a1a9f73f3e3ead148a0628d1 | [log] [tgz] |
---|---|---|
author | danishprakash <grafitykoncept@gmail.com> | Sun Jun 20 12:32:55 2021 +0530 |
committer | Rebecca Stambler <rstambler@golang.org> | Mon Jul 26 16:25:21 2021 +0000 |
tree | b4b3e24108ec77ca6b32e032650934b275c62cb0 | |
parent | 46d1522a5d8300cc04a811920df78ad0485885bc [diff] |
internal/lsp/source: evaluate bin/hex literal on hover We currently support evaluating int literals on hover if it's a const declaration but not if it's a var. This change adds support for the same for var. Fixes golang/go#45802 Change-Id: I3c4f6024b4b58fed38a5111253aa9e2ac30249fb Reviewed-on: https://go-review.googlesource.com/c/tools/+/330309 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Trust: Rebecca Stambler <rstambler@golang.org> Trust: Peter Weinberger <pjw@google.com> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <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 prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
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.