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
+19.9k Golang : GORM create record or insert new record into database example
+11.3k Golang : Remove or trim extra comma from CSV
+8.2k Golang : does not implement flag.Value (missing Set method)
+8.4k Golang : Accessing content anonymously with Tor
+20.9k Golang : Read directory content with filepath.Walk()
+12.1k Golang : Generate Code128 barcode
+20.5k Golang : Match strings by wildcard patterns with filepath.Match() function
+8.8k PHP : Get coordinates latitude/longitude from string
+13.2k Golang : How to shuffle elements in array or slice?
+6.4k Golang : How to convert strange string to JSON with json.MarshalIndent
+7k Swift : Convert (cast) String to Float
+5.6k Golang : How to determine if request or crawl is from Google robots