Print go mod
dependency tree.
This command call go mod graph
internally.
$ go install github.com/ryutoyasugi/gomod-tree@latest
$ gomod-tree
- github.com/ryutoyasugi/gomod-tree
- github.com/inconshreveable/[email protected]
- github.com/spf13/[email protected]
- github.com/cpuguy83/go-md2man/[email protected]
- github.com/russross/blackfriday/[email protected]
- github.com/inconshreveable/[email protected]
- github.com/spf13/[email protected]
- gopkg.in/[email protected]
- gopkg.in/[email protected]
- github.com/spf13/[email protected]
Specify depth (default 3)
$ gomod-tree -d 1
- github.com/ryutoyasugi/gomod-tree
- github.com/inconshreveable/[email protected]
- github.com/spf13/[email protected]
- github.com/spf13/[email protected]