commit | 9b20fe4cabe8b1a07e56c53f1969800561babfe3 | [log] [tgz] |
---|---|---|
author | Pei Xian Chee <luciolas1991@gmail.com> | Wed Jun 03 18:56:29 2020 +0000 |
committer | Rebecca Stambler <rstambler@golang.org> | Thu Jun 04 04:23:27 2020 +0000 |
tree | 8f5b819b21eec9e07de30968e663a0670e34e2aa | |
parent | 0310561d584d2d55563146409b9b39353fe814a5 [diff] |
internal/lsp: added a fill struct code action This code action generates key-value pairs of fields and default values between a struct's enclosing braces. Fixes #37576 Change-Id: Ia0555164d2164c2bc90bb9ecabbb55042cdd3846 GitHub-Last-Rev: 0e4db3effad7212b6c2b226079fa8fc5464eb0b9 GitHub-Pull-Request: golang/tools#220 Reviewed-on: https://go-review.googlesource.com/c/tools/+/227437 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <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.