Found it:

go list -f "{{.ImportPath}} {{.Imports}}" ./... | grep %1

Replace %1 with package you are looking for.
Run this at GOPATH root to scan all packages.


On Friday, August 17, 2018 at 12:08:48 PM UTC-4, Tad Vizbaras wrote:
>
> I have a package. Let say a/b/c. How to find what are other packages in my 
> GOPATH using it?
>
> I am basically trying to clean up GOPATH from all unused packages 
> installed and downloaded over the years. 
> Finding "dead" packages in GOPATH.
>
> Tried go list and go doc but only got list of dependencies: packages this 
> package depends on.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to