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
+8.5k Golang : Progress bar with ∎ character
+5.2k Golang : Get FX sentiment from website example
+14.2k Golang : How to convert a number to words
+11.8k Golang : Determine if time variables have same calendar day
+22.7k Golang : simulate tail -f or read last line from log file example
+15k Golang : How to check if IP address is in range
+12.1k Golang : How to check if a string starts or ends with certain characters or words?
+5.4k Python : Print unicode escape characters and string
+12k Golang : Split strings into command line arguments
+10k Golang : Find and replace data in all files recursively
+5.8k Golang : Generate multiplication table from an integer example