Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(117)

Unified Diff: src/cmd/fix/doc.go

Issue 5595044: code review 5595044: cmd/go: add go tools to rearrangement (Closed)
Patch Set: diff -r aad272ba37c8 https://code.google.com/p/go/ Created 13 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/cmd/fix/Makefile ('k') | src/cmd/fix/error.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/fix/doc.go
===================================================================
rename from src/cmd/gofix/doc.go
rename to src/cmd/fix/doc.go
--- a/src/cmd/gofix/doc.go
+++ b/src/cmd/fix/doc.go
@@ -3,34 +3,34 @@
// license that can be found in the LICENSE file.
/*
-Gofix finds Go programs that use old APIs and rewrites them to use
-newer ones. After you update to a new Go release, gofix helps make
+Fix finds Go programs that use old APIs and rewrites them to use
+newer ones. After you update to a new Go release, fix helps make
the necessary changes to your programs.
Usage:
- gofix [-r name,...] [path ...]
+ go tool fix [-r name,...] [path ...]
-Without an explicit path, gofix reads standard input and writes the
+Without an explicit path, fix reads standard input and writes the
result to standard output.
-If the named path is a file, gofix rewrites the named files in place.
-If the named path is a directory, gofix rewrites all .go files in that
-directory tree. When gofix rewrites a file, it prints a line to standard
+If the named path is a file, fix rewrites the named files in place.
+If the named path is a directory, fix rewrites all .go files in that
+directory tree. When fix rewrites a file, it prints a line to standard
error giving the name of the file and the rewrite applied.
-If the -diff flag is set, no files are rewritten. Instead gofix prints
+If the -diff flag is set, no files are rewritten. Instead fix prints
the differences a rewrite would introduce.
The -r flag restricts the set of rewrites considered to those in the
-named list. By default gofix considers all known rewrites. Gofix's
-rewrites are idempotent, so that it is safe to apply gofix to updated
+named list. By default fix considers all known rewrites. Fix's
+rewrites are idempotent, so that it is safe to apply fix to updated
or partially updated code even without using the -r flag.
-Gofix prints the full list of fixes it can apply in its help output;
-to see them, run gofix -?.
+Fix prints the full list of fixes it can apply in its help output;
+to see them, run go tool fix -?.
-Gofix does not make backup copies of the files that it edits.
+Fix does not make backup copies of the files that it edits.
Instead, use a version control system's ``diff'' functionality to inspect
-the changes that gofix makes before committing them.
+the changes that fix makes before committing them.
*/
package documentation
« no previous file with comments | « src/cmd/fix/Makefile ('k') | src/cmd/fix/error.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b