Skip to content
Rudra edited this page Sep 5, 2024 · 1 revision

Go - Quick Study Notes

These study notes provide a concise introduction to Go (Golang).

Install Go on Windows

  1. Download windows installer .msi file.
  2. Run the downloaded .msi file.
  3. Follow the prompts in the installer:
  4. Verify in the command prompt or powershell.
go version
  1. Ensure GOPATH is set by running:
echo %GOPATH%

Install Go on MacOS

  1. Download the MacOS installer .pkg file.
  2. Install .pkg file
  3. Verify the Installation
go version

Install Go on Linux

  1. Download the latest Linux archive .tar.gz file.
  2. 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.

  1. Add Go to in the PATH:
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile
source ~/.profile
  1. Verify the installation
go version
Clone this wiki locally