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
+10.3k Golang : Byte format example
+13k Golang : ROT47 (Caesar cipher by 47 characters) example
+6.3k Golang : Dealing with postal or zip code example
+7.7k Golang : Accept any number of function arguments with three dots(...)
+13.1k Golang : Reset buffer example
+8.5k Golang : interface - when and where to use examples
+5k Golang : How to verify input is rune?
+8.9k Golang : Convert octal value to string to deal with leading zero problem
+7.4k Golang : Implementing class(object-oriented programming style)
+7.6k Golang : Combine slices but preserve order example
+3.2k Javascript : Empty an array example
+9.7k Golang : Simple image viewer with Go-GTK