Home >Backend Development >Golang >Where are Go Packages Installed by 'go get' Located When Using Homebrew?
Locating Packages Installed by "go get"
When using "go get
Homebrew Installation
For Homebrew installations of Go, the default $GOPATH is not set, but the "go get" command still works successfully. To determine the location of the installed package, run the following command:
brew info go
This command will provide additional information about your Go installation, including a note indicating that if $GOPATH is not specified, $HOME/go will be used instead.
Therefore, for Homebrew installations, the default location for packages installed by "go get" is:
$HOME/go/bin
By navigating to this directory, you should find the executable associated with the installed package.
The above is the detailed content of Where are Go Packages Installed by 'go get' Located When Using Homebrew?. For more information, please follow other related articles on the PHP Chinese website!