Golistimports is a commandline tool which reports on the packages imported in a
Go project. Simply navigate to the project root and run golistimports
, and it
will give you an overview of:
- builtin packages which are imported by the project
- packages in the same module which are imported by the project
- non-builtin packages which are imported by the project
- packages imported by non-builtin packages imported by the project (go.sum)
go get -u github.com/j18e/golistimports