Skip to content

Commit 7d47e84

Browse files
committed
cmd/goimports: update docs to not imply goimports is superset of gofmt
Change-Id: I098fa50c274d8206b6e2534d647cfae18d6b2703 Reviewed-on: https://go-review.googlesource.com/45390 Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 parent 5d733ef commit 7d47e84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/goimports/doc.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ adding missing ones and removing unreferenced ones.
55
66
$ go get golang.org/x/tools/cmd/goimports
77
8-
It's a drop-in replacement for your editor's gofmt-on-save hook.
9-
It has the same command-line interface as gofmt and formats
10-
your code in the same way.
8+
In addition to fixing imports, goimports also formats
9+
your code in the same style as gofmt so it can be used
10+
as a replacement for your editor's gofmt-on-save hook.
1111
1212
For emacs, make sure you have the latest go-mode.el:
1313
https://github.com/dominikh/go-mode.el

0 commit comments

Comments
 (0)