gomodchanger

command module
v0.0.0-...-471f045 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 3 Imported by: 0

README

gomodchanger

gomodchanger - console tool for changing go module path and imports in code files.

Install as: go install github.com/artarts36/gomodchanger@v0.1.0

Usage
  gomodchanger new-module [--project-dir=<value>] [--nested]

Arguments
  new-module   new module, required

Options
  project-dir  path to project directory
  nested       replace also requirements to nested modules

Usage example

/usr/project1/go.mod:

module /usr/project1

run gomodchanger /usr/project2 or gomodchanger /usr/project2 --project-dir=/usr/project1

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg
cmd

Jump to

Keyboard shortcuts

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