You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't found a way to specify a different source package than the current one when invoking commands like mv A B. I'm working around this limitation by calling rf in a shell script that changes the working directory before invoking it. In a large codebase, each invocation of rf requires about 15-30 seconds to load everything before it does any refactoring. In my case, I wanted to rename structs in 130 packages and this took over an hour.
Example:
go.mod
module example.com/p
go 1.16
p.go
package p
varnothingstring
a/a.go
package a
varAint
If I understand code addresses correctly, I would expect to be able to write something like this:
rf 'mv example.com/p/a:A A'
The text was updated successfully, but these errors were encountered:
I haven't found a way to specify a different source package than the current one when invoking commands like
mv A B
. I'm working around this limitation by callingrf
in a shell script that changes the working directory before invoking it. In a large codebase, each invocation ofrf
requires about 15-30 seconds to load everything before it does any refactoring. In my case, I wanted to rename structs in 130 packages and this took over an hour.Example:
go.mod
p.go
a/a.go
If I understand code addresses correctly, I would expect to be able to write something like this:
rf 'mv example.com/p/a:A A'
The text was updated successfully, but these errors were encountered: