01 Jan 2020
·
2 min read
·Article 1 / 119
GoHow to Install Golang on Windows, Macbook and Linux Computers
IH
Ihsan Arif
Writer at Santekno · Backend Engineer
First download the Golang library on the [Golang] website (https://golang.org/doc/install) .
MAC
- Select the package and download according to MacOS support. If you use a Macbook M1, you should install the ARM64 version.
- After downloading the file with the .dmg extension, install it as you usually install applications. Once finished, usually the Golang path will be saved in the
/usr/local/gofolder - If necessary, type the command below to set the local environment
1export PATH=$PATH:/usr/local/go/bin
Windows
- Select the package and download it according to the supported version of Windows.
- After downloading the file with the .exe extension, install it like installing any other application. Usually files will be saved in the
Program FilesorProgram Files (x86)folder - Open terminal or
cmd.
Linux
- Select the package and download it according to the supported Linux version
- carry out the command below
1rm -rf /usr/local/go && tar -C /usr/local -xzf go{version-go}.linux-amd64.tar.gz - Make sure the environment path has been set so that the go library supports the operating system. This can be done with the command below.
1export PATH=$PATH:/usr/local/go/bin
Verify
After carrying out the installation process above, we can check whether Golang has been installed on our computer or not
- Open
terminal - then type the command
go version, then if it has been installed information will appear like this1go version go1.17.5 darwin/arm64 - or if you know more about the syntax in more detail, you can use
go help.
Related Articles
Go
06 Nov 2026
Golang E-Commerce OpenAPI Contract: API Documentation from an SDD Spec
22 mnt
Read
Go
05 Nov 2026
Golang E-Commerce Architecture Design: Clean Architecture + Multi-Service
24 mnt
Read
Go
04 Nov 2026
Build E-commerce Golang from Scratch: From Business Needs to SDD Spec
23 mnt
Read
Go
03 Nov 2026
Bridge to Topic 5: AI-Powered E-Commerce Golang — Preview and Preparation
21 mnt
Read