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

9b8df07b internal/lsp: enable -mod=readonly in workspace module mode
f1f686b0 internal/lsp: re-enable upgrades for individual dependencies
d8a2a079 go/packages: improve go invocation errors
19db92ec internal/lsp/cache: remove mod upgrade code
0cef57b5 internal/lsp/protocol: use a pointer for code action's disabled field
db4c57db gopls/internal/regtest: split regtests up into multiple packages
f871472f internal/lsp/cache: lock in snapshot.knownFilesInDir
c2bea79d internal/lsp/source: make it an error to rename embedded fields
514964b7 gopls/internal/hooks: improve license file test
68bf78a6 internal/lsp/cmd: improve help output of gopls subcommands
4922717d go/analysis/passes/fieldalignment: delete doc style comments in fix
917f61df gopls/internal/regtest: automate counting of editor notifications to await
2972602e internal/lsp: correct links provided in critical error pop-ups
e13398c8 internal/lsp: display current diagnostics in the debug server
cf1022a4 gopls: factor out advanced documentation from the README
87bc10f2 gopls: mention workspaces and build systems in the README
ce34e269 internal/lsp: don't show context cancellation in the progress bar
bec622c3 gopls: merge README and user.md
7e51fbd4 gopls/internal/regtest: re-enable android builder

Change-Id: I0e262f49306c7b44d89d994dfa89659fe04b6724
tree: 42cf0d4b95ab3c8ef023da8166fccd2de757f983
  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.