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
+13.1k Golang : Linear algebra and matrix calculation example
+11.1k Golang : Post data with url.Values{}
+16.5k Golang : Read integer from file into array
+6.9k Restart Apache or Nginx web server without password prompt
+7k Golang : Use modern ciphers only in secure connection
+5.2k Golang : Pad file extension automagically
+11k CodeIgniter : How to check if a session exist in PHP?
+39.3k Golang : Remove dashes(or any character) from string
+8k Golang : Get final or effective URL with Request.URL example
+5.2k Unix/Linux : How to archive and compress entire directory ?
+5.4k PHP : Convert string to timestamp or datestamp before storing to database(MariaDB/MySQL)
+10.2k Golang : Simple Jawi(Yawi) to Rumi(Latin/Romanize) converter