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
+27.9k Golang : Save map/struct to JSON or XML file
+12.6k Golang : Check if an integer is negative or positive
+21.7k Golang : Calculate time different
+9.8k PHP : Convert(cast) bigInt to string
+5.1k Linux/MacOSX : Search for files by filename and extension with find command
+15.9k Golang : XML to JSON example
+7.9k Golang : Build and compile multiple source files
+5.7k PHP : Shuffle to display different content or advertisement
+6.3k Golang : Process json data with Jason package
+26.9k Golang : Read, Write(Create) and Delete Cookie example
+4.5k Golang : If else example and common mistake
+5.6k Golang : How to determine if request or crawl is from Google robots