1
0
mirror of https://github.com/golang/go synced 2024-09-30 16:08:36 -06:00

refactor/rename: clarify usage message

In the example, we use backslashes (not single quotes) to escape
double-quotes since it works on both Windows and POSIX.

Change-Id: Id883f5457bec4d8a36d5b12c759ad385125a98a6
Reviewed-on: https://go-review.googlesource.com/2862
Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
Alan Donovan 2015-01-15 10:13:01 -05:00
parent d569772660
commit 84312aa521

View File

@ -55,13 +55,12 @@ Flags:
"encoding/json"::x object x anywhere within a package
json.go::x object x within file json.go
Double-quotes must be escaped when writing a shell command.
Quotes may be omitted for single-segment import paths such as "fmt".
For methods, the parens and '*' on the receiver type are both
optional.
Double-quotes may be omitted for single-segment import paths
such as fmt. They may need to be escaped when writing a
shell command.
It is an error if one of the ::x queries matches multiple
objects.
@ -99,7 +98,7 @@ Examples:
Rename the object whose identifier is at byte offset 123 within file file.go.
% gorename -from '"bytes".Buffer.Len' -to Size
% gorename -from \"bytes\".Buffer.Len' -to Size
Rename the "Len" method of the *bytes.Buffer type to "Size".