https://github.com/zmb3/gpj
GOPATH janitor
https://github.com/zmb3/gpj
Last synced: about 2 months ago
JSON representation
GOPATH janitor
- Host: GitHub
- URL: https://github.com/zmb3/gpj
- Owner: zmb3
- License: mit
- Created: 2015-09-28T23:31:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-29T00:16:59.000Z (over 10 years ago)
- Last Synced: 2025-01-18T06:28:48.353Z (over 1 year ago)
- Language: Go
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
`$GOPATH` Janitor
==============
`gpj` is a simple, no-frills way to check your `$GOPATH` for unused libraries.
To install, simply `go get github.com/zmb3/gpj`.
### Example
In this example, we start with a fresh `$GOPATH` and `go get` a command with a
couple of dependencies. We run `gpj` and don't get any output - this indicates
that we don't have any unused packages. We finish by removing the source for
the command but leaving its dependencies behind. `gpj` happily identifies the
unused libraries.
[](https://asciinema.org/a/84hjfs1p4q4xxm7fbzxn2ot1v)