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
+9.4k Golang : Create and shuffle deck of cards example
+12.5k Linux : How to install driver for 600Mbps Dual Band Wifi USB Adapter
+13k Golang : http.Get example
+6.6k PHP : Shuffle to display different content or advertisement
+8.4k Swift : Convert (cast) Character to Integer?
+13.6k Golang : Count number of runes in string
+19.7k Golang : Set or Add HTTP Request Headers
+11.5k Golang : Post data with url.Values{}
+45.2k Golang : Use wildcard patterns with filepath.Glob() example
+14.1k Golang : convert rune to unicode hexadecimal value and back to rune character
+6.2k Golang : Grab news article text and use NLP to get each paragraph's sentences