-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Rudra edited this page Sep 5, 2024
·
1 revision
Go - Quick Study Notes
These study notes provide a concise introduction to Go (Golang).
-
Download windows installer
.msi
file. - Run the downloaded
.msi
file. - Follow the prompts in the installer:
- Verify in the command prompt or powershell.
go version
- Ensure
GOPATH
is set by running:
echo %GOPATH%
- Download the MacOS installer
.pkg
file. - Install
.pkg
file - Verify the Installation
go version
- Download the latest Linux archive
.tar.gz
file. - Open Terminal:
sudo tar -C /usr/local -xzf go1.xx.x.linux-amd64.tar.gz
Replace go1.xx.x
with the version number you downloaded.
- Add Go to in the
PATH
:
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile
source ~/.profile
- Verify the installation
go version