commit | f47cb783b1419515de41e60e4e4d7e2c2dc46240 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Thu Feb 18 14:24:10 2021 -0500 |
committer | Russ Cox <rsc@golang.org> | Thu Feb 18 23:52:57 2021 +0000 |
tree | 428f67593ec15337a998582c5bed2b77c05b43d6 | |
parent | 06713c25cb25cb41bf8c9c145680b2f7c8af09f8 [diff] |
go/analysis/passes/buildtag: update check for //go:build Part of //go:build change (#41184). See https://golang.org/design/draft-gobuild Report misplaced and malformed //go:build lines, like we've always done for // +build lines. Report when the // +build lines do not say the same thing as the //go:build line. (Running gofmt will always bring them back in sync.) For Go 1.17 vet. Change-Id: Ifd22c6e8edcfeedc37851ba514712c5c057ad4b8 Reviewed-on: https://go-review.googlesource.com/c/tools/+/293834 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Jay Conrod <jayconrod@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.