depth

depth is tool to retrieve and visualize Go source code dependency trees.
Install
Download the appropriate binary for your platform from the Releases page, or:
go get github.com/KyleBanks/depth/cmd/depth
Usage
depth can be used as a standalone command-line application, or as a package within your own project.
Command-Line
Simply execute depth with one or more package names to visualize. You can use the fully qualified import path of the package, like so:
$ depth github.com/KyleBanks/depth/cmd/depth
github.com/KyleBanks/depth/cmd/depth
├ encoding/json
├ flag