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
+14.3k Golang : Check if a file exist or not
+29.7k Golang : How to create new XML file ?
+9.7k Golang : Changing a RGBA image number of channels with OpenCV
+9.5k Golang : How to get garbage collection data?
+22.4k Golang : How to run Golang application such as web server in the background or as daemon?
+11.9k Golang : How to detect a server/machine network interface capabilities?
+24.9k Golang : How to print rune, unicode, utf-8 and non-ASCII CJK(Chinese/Japanese/Korean) characters?
+6.4k Golang : Process non-XML/JSON formatted ASCII text file example
+28.3k Golang : Move file to another directory
+19.3k Mac OSX : Homebrew and Golang
+10.6k Golang : cannot assign type int to value (type uint8) in range error
+5.6k Golang *File points to a file or directory ?