Install Golang Apple macOS M1 Silicon Chip

In this article, we will show you how to install the Golang on the Apple macOS M1 silicon chip

Image for post

The first Macs running on the Apple M1 chip released on Nov. 17, 2020. Announced on Nov. 10 at the “One more thing,” event, the first three Macs running on Apple’s own chips are the Apple Silicon MacBook Air, Apple Silicon MacBook Pro, and even the Apple Silicon Mac mini.

Video

Issues Running Apps/Software with macOS m1 Silicon Chip

There are some issues with the apps you can’t run on the new macOS m1 Silicon Chip such as Docker, GoLang, etc. But they are now supporting Beta versions.

We are using MacBook Pro 13 Inch M1 Chip Memory 8GB to install Golang

Image for post

Go to the Golang website download page shown below

https://golang.org/dl/

Click on the Download Go Button as shown below in the screenshot

Image for post

You will see the following Downloads page

Image for post

Scroll down to look for the version go.1.16rc1

go.1.16rc1
Image for post

Click on the go.1.16rc1 version expand. You will see the following list of packages and installers. Click on the Red highlighted version and proceed to download.

Image for post

Click on the downloaded file and run the installer as follows and click on the Continue button

Image for post

Then you will see the following screen as shown below. Click on the install button.

Image for post

It will run the installer. Once the installer installed the Golang you will see the following screen.

Image for post

Test Installation

To verify the installation, Open the terminal and type the following command

Go version
Image for post

It will show you the installed version of the Golang as shown in the above screenshot.

Hello Go Program

To check the program file, Create a new file name main.go and copy the following code.

// main.go file
package main
import "fmt"func main() {
fmt.Println("Hello Go")
}

To run the program type the following command in the terminal.

go run main.go

You will see the output of the program as shown below in the screenshot

Image for post

We are done with the Golang installation

Thank you 🚀🚀🚀🚀

We teach & develop for startups

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store