x/tools/cmd/gorename: gorename fails with on cgo-using files #15793
Labels
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Please answer these questions before submitting your issue. Thanks!
1. What version of Go are you using (
go version
)?2. What operating system and processor architecture are you using (
go env
)?3. What did you do?
Given this input file
demo.go
:Run this command:
gorename -offset demo.go:#78 -to bar
4. What did you expect to see?
It rename without error:
Renamed 2 occurrences in 1 file in 1 package.
5. What did you see instead?
I got this error:
gorename: -offset "demo.go:#78": no identifier at this position
The text was updated successfully, but these errors were encountered: