Golang : Display packages names during compilation
Problem :
You need to identify the packages that a Golang program need or perhaps you just want to list out the packages names during source codes compilation such as go build
or go install
. How to do that?
Solution :
Add the -v
flag/parameter to go build
or go install
. It will display the names of packages as they are compiled.
-v
also mean verbose mode.
See also : Golang : How to force compile or remove object files first before rebuild?
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+9.8k Golang : Test a slice of integers for odd and even numbers
+6.4k Golang : Skip or discard items of non-interest when iterating example
+13.4k Golang : How to determine if a year is leap year?
+8.6k Golang : Populate or initialize struct with values example
+5.6k Cash Flow : 50 days to pay your credit card debt
+7.9k Golang : How To Use Panic and Recover
+13.1k Golang : Verify token from Google Authenticator App
+27.3k PHP : Count number of JSON items/objects
+39.2k Golang : Remove dashes(or any character) from string
+7.4k Gogland : Where to put source code files in package directory for rookie