Created
April 16, 2018 05:59
-
-
Save flavianmissi/f5192eef53e10431aac01642092d4ddc to your computer and use it in GitHub Desktop.
list a go pkg dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GO_TARGET_PKG=./my/pkg | |
go list -f '{{ join .Imports "\n" }}' "${GO_TARGET_PKG}" | grep -v vendor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment