How to list installed packages in Go/Golang?

In this article we will discuss how to list installed packages in Go

With latest versions of GO, we use “go get” to install external/third party modules into your workspace. This feature , like any  other package managers, download the source code and save it on your machine.

Check the “help” using

Get downloads the packages named by the import paths, along with their dependencies. It then installs the named packages, like ‘go install’.

How to List installed packages in GO/GOLANG ?

If you want to list installed packages in go , you can do that with the “go list”

To list installed go packages inside your workspace, use the command

To list all installed packages in GO, use the command

Sample Outputs

This command outputs long list of packages. Packages from the standard library will be listed first followed by external/third party Packages.

Leave a Reply

Your email address will not be published. Required fields are marked *