Let's make sure you have everything needed for this workshop.
Obviously you'll need the Go tool chain. You can download it from the downloads section in the Go web site.
To make sure you have a working Go environment open a terminal/command prompt and type:
go version
You should see output similar to
go version go1.9.2 linux/amd64
A good editor or IDE will boost your productivity by a lot.
You don't have to use one, any odd editor combined with the Go tool chain will do the work, but I highly encourage you to use an editor/IDE.
Personally I'm using Vim with vim-go plugin. Vim is awesome and feature packed, however the learning curve might be steep.
Other good options are Visual Studio Code with Go extension and GoLand.
One of the uses of the go
tool is to install third party packages. When
installing it uses git (or other source control systems) to download
packages. Most Linux/OSx systems already have git installed but on Windows
you'll need to install it yourself.
To make sure you have a working git open a terminal/command prompt and type:
git version
You should see output similar to
git version 2.15.0
We are going to build a web server and send HTTP requests to it. Some of them can be done with the browser, but we'll also make POST requests and for this we'll use curl.
To make sure you have a working git open a terminal/command prompt and type:
curl https://httpbin.org/user-agent
You should see output similar to
{
"user-agent": "curl/7.55.1"
}
If you're not comfortable with the command line, another option to try is Postman which is a browser extension that let's you do POST requests.