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
+17.1k Golang : Logging with logrus
+19.5k Golang : Clean up null characters from input data
+4.3k Golang : Qt update UI elements with core.QCoreApplication_ProcessEvents
+17.7k Golang : When to use public and private identifier(variable) and how to make the identifier public or private?
+7.8k Golang : Capture text return from exec function example
+10k Golang : Characters limiter example
+8.9k Golang : Channels and buffered channels examples
+9.6k Golang : Replace a parameter's value inside a configuration file example
+16.2k Golang : Linked list example
+5k Golang : How to verify input is rune?
+12.5k Golang : Check if an integer is negative or positive
+10.8k Golang : Simple client-server HMAC authentication without SSL example