commit | 12a7c317e894c0a622b5ed27f0a102fcdd56d1ad | [log] [tgz] |
---|---|---|
author | Serhii Aheienko <serhii.aheienko@gmail.com> | Wed Jun 06 23:43:48 2018 +0300 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Fri Oct 12 15:41:53 2018 +0000 |
tree | 8b52c5239d5d77a954ab6ad5e9047512151ecb82 | |
parent | 87312bc3edd028a31d662e145d02b38790f4c716 [diff] |
imports: support repairing import grouping/ordering The existing implementation detects import groups and tryies to sort/regroup only the last one. Ignore existing grouping and applying the sort function to all imports fix this. Fixes golang/go#20818 Change-Id: I5db46c6dc8fabd9299b79349880994be5c1b8195 Reviewed-on: https://go-review.googlesource.com/c/116795 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@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 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.