commit | 0e8b1ee181839eb086b882aced395bbc54479e8a | [log] [tgz] |
---|---|---|
author | Jean de Klerk <deklerk@google.com> | Tue Oct 13 16:19:08 2020 -0600 |
committer | Jean de Klerk <deklerk@google.com> | Mon Nov 30 20:22:45 2020 +0000 |
tree | 38358ecf83c9746370d51b5d40aacc0d670e28be | |
parent | ca1c149215bb66fc645aadf5a59ed703f42db907 [diff] |
gopls, internal/lsp: support fillstruct for partially-filled structs This updates fillstruct to work even when the struct is partially filled. User supplied fields are preserved but comments are blown away. Preserving comments appears to be very hard with the current ast library. One possible option is to do manual string shenanigans, but after exploring that path it seems like A Bad Idea. Fixes golang/go#39804 Change-Id: Iec0bb93db05d4d726dfa6c77a8139f53b14bcc77 Reviewed-on: https://go-review.googlesource.com/c/tools/+/262018 Run-TryBot: Jean de Klerk <deklerk@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> Trust: Jean de Klerk <deklerk@google.com>
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.