gii

Set repositories which doesn't belong golang project to .goimportsignore.
When you employ go-style directory tree^1 to maintain all projects
even if such projects are not written in golang,
your $GOPATH/src has too many repositories and it makes goimports slower.
gii lists up repositories which doesn't belong to golang projects from
your $GOPATH/src and writes them to .goimportsignore,
so that goimports doesn't search such repositories.
Usage
Run just gii if $GOPATH is set. If you want to use another root path,
use --gopath flag.
gii appends paths of repositories which doesn't belong to golang projects,
and aren't appeared $GOPAH/.goimportsignore already.
To delete added paths, please edit $GOPAH/.goimportsignore manually.
Here is the help text of gii:
gii [global options]
GLOBAL OPTIONS:
--gopath GOPATH GOPATH [$GOPATH]
--help, -h show help
--version, -v print the version
Installation
$ go get github.com/jkawamoto/gii
or if you're Homebrew user,
$ brew tap jkawamoto/gii
$ brew install gii
Compiled binaries are also available in
Github's release page.
License
This software is released under the MIT License, see LICENSE.