gopkgdep is a Go package dependency analysis tool. It walks the dependencies for packages specified on the command line and outputs useful text and graphical visualisations.
go install github.com/goeezi/gopkgdep@latest
gopkgdep -h
gopkgdep
gopkgdep -compact
gopkgdep -compact -closed
gopkgdep -dot | dot -Tsvg > out.svg
gopkgdep -closed -dot ./internal/... | dot -Tsvg > out.svg