go.nvim icon indicating copy to clipboard operation
go.nvim copied to clipboard

gomvp - refactor packages / rename module, early though

Open abenz1267 opened this issue 2 years ago • 3 comments

Hi,

i just created a little cli tool that helps refactoring/moving packages and renaming the module itself. It's literally just been released, but i figured you might be interested in adding that to go.nvim regardless.

https://github.com/abenz1267/gomvp

See here: https://drive.google.com/file/d/1GRDP6P5zhFADyiDlQVUWZMhPTrujHYQ5/view?usp=sharing

Regards

abenz1267 avatar Jul 24 '22 12:07 abenz1267

Does the tool move all reference in the workspace and maybe .mod/sum from url_for_package_a to url_for_backage_b if I run gomvp url_for_package_a url_for_package_a

ray-x avatar Jul 25 '22 04:07 ray-x

It does indeed!

abenz1267 avatar Jul 25 '22 05:07 abenz1267

+1

lijinglin3 avatar Aug 03 '22 04:08 lijinglin3

I added a new command Gomvp

ray-x avatar Oct 25 '22 09:10 ray-x

gopls just released a new version with experimental package renaming. https://github.com/golang/tools/releases

so i might deprecate gomvp in the near future.

abenz1267 avatar Oct 31 '22 17:10 abenz1267