[gopls-release-branch.0.6] all: merge master into gopls-release-branch.0.6

b261fe96 go/tools: add vet check for direct comparion of reflect.Values
e78b40c7 internal/lsp: switch to 'go get -u ./...' for transitive upgrades
3ac76b8b gopls/internal/coverage: better error messages and output
c6024661 Revert "internal/lsp/cache: disable GOPACKAGESDRIVER"
35a91593 go/internal/gcimporter: ensure that imported floats are of float kind
5d334387 go/internal/gcimporter: merge go1.11 tests back into gcimporter_test.go
11c3f835 internal/lsp/source: fix Highlight for std and 3rd-party packages
8c34cc9c internal/lsp/cache: fix race condition in snapshot's initializedErr
0deaffd2 gopls/internal/regtest: re-enable the gc_details regtest for -short
af364066 internal/lsp/source: respond with the underlying type to Type Definition requests for composite types
682c7e60 godoc/static: link to golang.org for content moved out of Go root
ca627f83 internal/lsp/semantic: fix some type definitions
04595890 internal/lsp/protocol/typescript: small cleanups and add tsconfig.json
b0e994dc internal/jsonrpc2_v2: move the idle timeout handling out of the server
95535753 internal/lsp: remove unnecessary call to WorkspacePackages in mod tidy
769264cf internal/lsp/source: fix docs for fields of anonymous structs/interfaces
cb7d5993 internal/lsp/source: skip blank identifiers during the function extraction
94a19427 internal/lsp/completion: move postfix completions behind option
09058ab0 internal/lsp/source/completion: add postfix snippet completions
2c039f7f internal/event/label: prevent unsafe get of non-string
4c8e4a8b go/analysis/passes/inspect: fix typo in comment
63ea654b internal/lsp: hold the gc details lock when storing diagnostics
7f6d50ea internal/lsp/source: fix hover and completion with dot imports
b3556f0f internal/lsp: remove some unused parameters, mostly in the cache package
09a00c1a internal/lsp: fix support for SourceFixAll code actions
877f9c48 internal/jsonrpc2_v2: an updated jsonrpc2 library
52cb7724 gopls: upgrade mvdan.cc/gofumpt to v0.1.1
a1191f37 gopls: upgrade honnef.co/go/tools to v0.1.3
d8aeb16b internal/lsp: add defaultLibrary mod for basic types
aa0c7234 internal/lsp/cache: get control of reloadOrphanedFiles
d7a25ada gopls/integration: remove obsolete code
9bdb4197 gopls/internal: add coverage command to compute test coverage
d2e11a2b present: don't drop commands that immediately follow text
695b1675 cmd/present2md: allow comments to be retained in translated document
a14ff98a present: retain complete caption command when parsing captions
1aac171f Update emacs.md - add .dir-locals.el example
2c4a8865 internal/lsp: remove module diagnostics from code actions
9b614f5d internal/lsp/cache: tolerate analysis panics better
9e9211a9 gopls/internal/regtest: fix race when printing regtest state on falure
6d45e3d9 internal/lsp: add a temp workspace per folder, and a helper command
e409f121 internal/lsp: add snippet completion for t.Fatal errs
8e4f4c86 godoc: delete GoogleCN logic
44abc2a7 internal/lsp: only load by view when there are no go.mod files

Change-Id: Ie5d628f640a8edaeb41c4cdf30aafefbc892ec7c
tree: 31eb1e9f2aa1d4d240b9d9e01073ab549f7075d2
  1. benchmark/
  2. blog/
  3. cmd/
  4. container/
  5. copyright/
  6. cover/
  7. go/
  8. godoc/
  9. gopls/
  10. imports/
  11. internal/
  12. playground/
  13. present/
  14. refactor/
  15. txtar/
  16. .gitattributes
  17. .gitignore
  18. .prettierrc
  19. AUTHORS
  20. codereview.cfg
  21. CONTRIBUTING.md
  22. CONTRIBUTORS
  23. go.mod
  24. go.sum
  25. LICENSE
  26. PATENTS
  27. README.md
README.md

Go Tools

PkgGoDev

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.

Download/Install

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.

JS/CSS Formatting

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.

Report Issues / Send Patches

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.