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
+12.9k Python : Convert IPv6 address to decimal and back to IPv6
+10.3k Golang : Convert file unix timestamp to UTC time example
+15.6k Golang : Convert date format and separator yyyy-mm-dd to dd-mm-yyyy
+5.2k Golang : Convert lines of string into list for delete and insert operation
+7.9k Javascript : Put image into Chrome browser's console
+8k Golang : What fmt.Println() can do and println() cannot do
+7.4k Golang : How to convert strange string to JSON with json.MarshalIndent
+36k Golang : Integer is between a range
+13.9k Golang : convert(cast) string to float value
+29.9k Golang : How to get HTTP request header information?
+22k Fix "Failed to start php5-fpm.service: Unit php5-fpm.service is masked."