gogetimports

command module
v0.0.0-...-dd38777 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2016 License: MIT Imports: 10 Imported by: 0

README

gogetimports

Get a JSON-formatted map of imports per file.

This tool will be useful if you'd like to get a bird view of the packages used by your application, or get statistics about third party libraries used.

Get Started
$ go get github.com/jgautheron/gogetimports
$ gogetimports ./...
Usage
Usage:

  gogetimports ARGS <directory>

Flags:

  -only-third-parties  return only third party imports
  -list                return a list instead of a map
  -ignore              ignore imports matching the given regular expression
  -pretty              output JSON with proper indentation

Examples:

  gogetimports ./...
  gogetimports -only-third-parties $GOPATH/src/github.com/cockroachdb/cockroach
  gogetimports -ignore "jgautheron\/gocha" -list $GOPATH/src/github.com/jgautheron/gocha/...
  gogetimports -pretty .
License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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