Skip to content

Commit 0b930fb

Browse files
ericchiangheschi
authored andcommitted
cmd/goimports: recommend go install instead of go get in docs
go get now logs a warning when using it to install globally. Prefer go install @latest instead. Change-Id: I9478771e70c58202847a6dfeaaf63e1b88301d84 Reviewed-on: https://go-review.googlesource.com/c/tools/+/355251 Reviewed-by: Brad Fitzpatrick <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> Trust: Brad Fitzpatrick <[email protected]>
1 parent c83725b commit 0b930fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/goimports/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Command goimports updates your Go import lines,
88
adding missing ones and removing unreferenced ones.
99
10-
$ go get golang.org/x/tools/cmd/goimports
10+
$ go install golang.org/x/tools/cmd/goimports@latest
1111
1212
In addition to fixing imports, goimports also formats
1313
your code in the same style as gofmt so it can be used

0 commit comments

Comments
 (0)