Motivation

I remember when Go was announced on november 2009. It was really interesting, also because it is nice to follow a project since the beginning. But I decided to learn it only at the time of this writing.

It has interesting features, a clean ecosystem, it runs on Google App Engine: it is very attractive!

Setup

Installation

Get your installer from Go Downloads.

Environment

Create or edit the following environment variables

GOROOT
the path to your Go installation
GOPATH
see here
PATH
edit it to find the go binary in your PATH

For instance, on Windows add the environment variables

Don’t forget to create GOPATH folder

For instance, open an MS-DOS prompt and launch

C:\> mkdir %GOPATH%

On Mac OSX, create a folder for Golang

mkdir ~/.Golang

Then add the following to your shell profile

export GOPATH=~/.Golang
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN

Vim integration

See Go section in my Vim configuration.

Code 30 minutes everyday

Inspired by Why Go is elegant and makes my code elegant and Write code everyday articles, since I am a mathematician, I started my quest on Project Euler to get my hands dirty with Go.