commit | 70b12541d3fecd5bcb3e66a8234612737629313b | [log] [tgz] |
---|---|---|
author | Daniel Martí <mvdan@mvdan.cc> | Fri Nov 16 16:13:26 2018 +0000 |
committer | Daniel Martí <mvdan@mvdan.cc> | Mon Nov 19 11:39:21 2018 +0000 |
tree | a83893e81fbf70493ae967de6a6136a6753b20c1 | |
parent | 2ddaf7f79a0937ffa9072ede7b696fd084abfe86 [diff] |
go/analysis: unindent some pieces of code All of these were quite heavily indented for no good reason; breaking or returning early makes the code easier to read and follow. Change-Id: Ic539517b07604d71495277b16f1b7eb60d2e3d3c Reviewed-on: https://go-review.googlesource.com/c/149978 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alan Donovan <adonovan@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 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.