Skip to content

Instantly share code, notes, and snippets.

@nhandl3
Created November 8, 2018 04:04
Show Gist options
  • Save nhandl3/9b7440166dc7cc2c28eb634747fbf245 to your computer and use it in GitHub Desktop.
Save nhandl3/9b7440166dc7cc2c28eb634747fbf245 to your computer and use it in GitHub Desktop.
Go (lang) useful commands

List directly imported packages

go list -f '{{ join .Imports "\n" }}'

List all subdependencies

go list -f '{{ join .Deps "\n" }}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment