commit | 7c72a84860e3357fb3e7fd9296eb6aefbd3600d9 | [log] [tgz] |
---|---|---|
author | Pontus Leitzler <leitzler@gmail.com> | Tue Apr 27 22:29:14 2021 +0200 |
committer | Pontus Leitzler <leitzler@gmail.com> | Tue Apr 27 20:55:22 2021 +0000 |
tree | ebfbe01bfcf6073df2097d8343ec7f8e8cd1cf84 | |
parent | 9ff864874fd911d6be2952afd82c5ccaaccd553d [diff] |
go/analysis/passes/fieldalignment: clarify reported diagnostics in docs It wasn't obvious that there are two different kind of diagnostics reported by fieldalignment, one for struct size and another for pointer bytes. The documentation now mentions both types, and shows an example that clarify what "pointer bytes" are. Fixes golang/go#45541 Change-Id: Ia62fb05980ddddf52e579ac51459aaaed168cfa7 Reviewed-on: https://go-review.googlesource.com/c/tools/+/314469 Trust: Pontus Leitzler <leitzler@gmail.com> Run-TryBot: Pontus Leitzler <leitzler@gmail.com> gopls-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> 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.