goimport-rewrite

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

README

goimport-rewrite

Tool to rewrite some go import paths. The majority of this code was ripped from the go fix tool with some modifications then to do arbitrary import rewriting and not any of the other fix code.

Usage

usage: goimport-rewrite -r <import path>:<new import path> [-r <import path>:<new import path>] [path ...]

The list of paths may be single files or directories. If directories all .go files within that directory will be processed

  -r value
        Import to rewrite. Expected format is '<old path>:<new path>'.

Typical CLI Invocation:

goimport-rewrite -r github.com/foo/bar:github.com/bar/foo -r code.google.com/this/is/gone:github.com/new/location .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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