In this project list of example given in go tour.
First you need to install go in your machine
$ sudo apt-get update
$ sudo apt-get -y upgrade
$ sudo curl -o https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz
$ sudo tar -xvf go1.7.linum-amd64.tar.gz
$ sudo mv go/ /usr/local
$ sudo vi ~/.profile
At the end of of the file, add this line
$ export PATH=$PATH:/usr/local/go/bin
$ source ~/.profile
$ export GOPATH=$HOME/path_to_your_project_dir
To see the output of particular file
$ go run file_name.go