gorename

module
v0.0.0-...-a0b5a8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2020 License: MIT

README

gorename

gorename is a tool for moving packages to the new import paths.

Installation

The go get command will automatically fetch the dependencies listed above, compile the binary and place it in your $GOPATH/bin directory.

go get -u github.com/Orogenesis/gorename/cmd/gorename

Usage

Usage:
  gorename [flags]

Flags:
  -path             Package path you want to replace
  -new-path         New path of the package
  -root-dir         Root directory path of the project (default ".")
  -use-modules      Replace module name in go.mod
  -print-result     Display progress

Example

gorename -path gitlab.com/orogenesis/gorename -new-path github.com/orogenesis/gorename

License

The MIT License (MIT).

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL