From 7d47e840ac8ec63c4a5cd5c900156cad5e6b6a63 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 12 Jun 2017 17:22:52 +0000 Subject: [PATCH] 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 --- cmd/goimports/doc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/goimports/doc.go b/cmd/goimports/doc.go index 316d4867..f5ca3a0a 100644 --- a/cmd/goimports/doc.go +++ b/cmd/goimports/doc.go @@ -5,9 +5,9 @@ adding missing ones and removing unreferenced ones. $ go get golang.org/x/tools/cmd/goimports -It's a drop-in replacement for your editor's gofmt-on-save hook. -It has the same command-line interface as gofmt and formats -your code in the same way. +In addition to fixing imports, goimports also formats +your code in the same style as gofmt so it can be used +as a replacement for your editor's gofmt-on-save hook. For emacs, make sure you have the latest go-mode.el: https://github.com/dominikh/go-mode.el