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
+18.8k Golang : Count number of digits from given integer value
+4.2k Gogland : Datasource explorer
+8.9k CodeIgniter : Load different view for mobile devices
+17.2k Golang : Padding data for encryption and un-padding data for decryption
+31.5k Delete a directory in Go
+5k Golang : Experimenting with the Rejang script
+40.1k Golang : Convert string to array/slice
+50.4k Golang : How to get time in milliseconds?
+10.3k Golang : Surveillance with web camera and OpenCV
+29.1k Golang : Interpolating or substituting variables in string examples
+11k Golang : calculate elapsed run time
+35.8k Golang : Read a text file and replace certain words