x/tools/cmd/gorename: allow renaming to builtins #22855
Labels
NeedsFix
The path to resolution is known, but the work has not been done.
Refactoring
Issues related to refactoring tools
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What did you do?
While trying to rename a variable (func, etc..) to
real
the gorename tool panics.Suppose you have a
main.go
like this:And you run
gorename -from 'main.go::world' -to real
What did you expect to see?
Expected output:
Renamed 2 occurrences in 1 file in 1 package.
and the
main.go
file containing:What did you see instead?
System details
The text was updated successfully, but these errors were encountered: