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
+5.5k Fix yum-complete-transaction error
+29.5k Golang : Get and Set User-Agent examples
+6.4k Golang : Experimental emojis or emoticons icons programming language
+23.6k Golang : Use regular expression to validate domain name
+5.2k Golang : What is StructTag and how to get StructTag's value?
+6.7k Golang : How to setup a disk space used monitoring service with Telegram bot
+28.1k Golang : Change a file last modified date and time
+6.8k Web : How to see your website from different countries?
+18.4k Golang : Implement getters and setters
+46k Golang : Marshal and unmarshal json.RawMessage struct example
+5.8k Golang : How to verify input is rune?
+11.2k Golang : Generate DSA private, public key and PEM files example