Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mkeeler/goimport-rewrite
Tool to rewrite some go import paths
https://github.com/mkeeler/goimport-rewrite
golang import
Last synced: 19 days ago
JSON representation
Tool to rewrite some go import paths
- Host: GitHub
- URL: https://github.com/mkeeler/goimport-rewrite
- Owner: mkeeler
- License: bsd-3-clause
- Created: 2019-04-11T16:21:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-22T14:15:53.000Z (over 1 year ago)
- Last Synced: 2024-10-13T01:09:30.100Z (about 1 month ago)
- Topics: golang, import
- Language: Go
- Size: 14.6 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```text
usage: goimport-rewrite -r : [-r :] [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 ':'.```
Typical CLI Invocation:
```sh
goimport-rewrite -r github.com/foo/bar:github.com/bar/foo -r code.google.com/this/is/gone:github.com/new/location .
```