Skip to content

kmendell/gomvp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gomvp - move packages, rename modules

gomvp is a simple CLI tool that helps you refactor packages and rename modules.

Installation

go install github.com/abenz1267/gomvp@latest

... or download the binary from the releases.

Usage

gomvp <src pkg> <dst pkg>, for example gomvp somepackage movedpackage

If the src is equivalent to the current module name, then instead the module is renamed, so f.e. gomvp github.com/abenz1267/gomvp github.com/abenz1267/newmodule will rename the module.

Moving files is performed via git mv, so they have to be added via git before usage.

Notes

  • will abort if there's a conflicting package present
  • named imports won't be altered, as it's just replacing the actual import string
  • usage of named imports won't be altered, as it's just replacing the package name

About

gomvp lets you refactor/rename packages

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 100.0%