mirror of
https://github.com/golang/go
synced 2024-11-18 13:04:46 -07: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:
parent
d569772660
commit
84312aa521
@ -55,13 +55,12 @@ Flags:
|
|||||||
"encoding/json"::x object x anywhere within a package
|
"encoding/json"::x object x anywhere within a package
|
||||||
json.go::x object x within file json.go
|
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
|
For methods, the parens and '*' on the receiver type are both
|
||||||
optional.
|
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
|
It is an error if one of the ::x queries matches multiple
|
||||||
objects.
|
objects.
|
||||||
|
|
||||||
@ -99,7 +98,7 @@ Examples:
|
|||||||
|
|
||||||
Rename the object whose identifier is at byte offset 123 within file file.go.
|
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".
|
Rename the "Len" method of the *bytes.Buffer type to "Size".
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user