How To Run Your First Go Application In Three simple steps

Pascal Zwikirsch
Level Up Coding
Published in
4 min readFeb 15, 2021

--

A short introduction to installing Go on your system and creating your very first “Hello-World”-application in Go in under 10 minutes.

Photo by lucas Favre on Unsplash

1. Installation

Install the Go binary

Visit https://golang.org/doc/install and download the appropriate installer.

After the download is finished, open the installer and follow the steps described there.

Verify installation

The Go binaries are installed per default under /usr/local/go (Mac). You can verify the installation via the execution of the command go version in a fresh terminal.

If go isn’t already being found by the CLI you have to manually add /usr/local/go/bin to the PATH variable of your system.

2. Creating Your First “Hello World”-Go Application

First, create a new folder for your application and navigate into it:

$ mkdir hello_world
$ cd hello_world

--

--