mvpkg

command module
v0.0.0-...-3ef265e Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 4 Imported by: 0

README

mvpkg

CircleCI codecov GolangCI

mvpkg is a refactoring tool for Go codebases that allows you to move a package or a set of packages from one path to another within the same go module. It's written for go modules and with performance in mind, so let me know if it's not fast enough for you.

This tool was built because gomvpkg doesn't work with go modules.

Installation:

go get github.com/vikstrous/mvpkg

Usage:

Usage: mvpkg <src> <dst>

  mvpkg takes two positional arguments: a source and destination path
  It works only withing a single go module and only with go module support enabled.
  The source and destination paths must be relative to the root of the go module

  -build-flags value
        build tags to use while parsing source packages, can be specified morethan once
        ex: -build-flags='-tags=foo bar'
  -dry-run
        print planned actions without executing them
  -recursive
        recursively move all packages nested under the source package
  -v    verbose, print status while running

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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