
How to install Go
How to install Go 관련
Go to go.dev/doc/install and download the package for your Operating System.
Run the installer, and at the end of the process you will have the go
command available in your terminal:


Open the terminal and run go version
and you should see something like this:

Note
You might have to open a new terminal before you can run the program, as the installer added the Go binaries folder to the path.
The exact location of the Go installation files will depend on your Operating System.
On macOS, it’s under /usr/local/go
, with binaries in /usr/local/go/bin
.
On Windows, it will be under C:\Program Files\go
.
The Windows and Mac installers will set the Go binaries path automatically.
On a Mac you might also want to install Go via Homebrew using brew install golang
. This will make it easier to update later.
On Linux you will have to add the Go binaries folder to your terminal path before you can run the go
command after unpackaging the Linux package to /usr/local/go
with this command:
echo 'export PATH=$PATH:/usr/local/go/bin' >> $HOME/.profile
source $HOME/.profile