Tuesday, April 14, 2015

Day 1 - Installing the Go runtime on Windows

This is the first day of my journey into the programming language Go from Google (golang).

I have choosen Go to be the next language im going to learn because it is the best of two worlds: It is as fast as a compiled language, but feels like an interpreted one.

How to getting started with GoLang on Windows7 64bit:

Go to http://golang.org/dl and download the msi, then install it

Check if it has been installed correctly by starting a cmd shell and enter "go version", it should show something like this:

C:\>go version
go version go1.4.2 windows/amd64

The environment variable $GOROOT should have been created and $PATH should include $GOROOT\bin.

Type "set" to check if these variables are correct if "go version" gives you an error.

To display only one environment variable:

C:\>echo %GOROOT%


C:\>echo %PATH%

How to set Environment variables in Windows: http://www.computerhope.com/issues/ch000549.htm

Im sure you already know him but im posting him nevertheless because he is the cutest mascot since Tux.

Please meet Gopher, the GoLang mascot:

 (Downloaded the png from qiita.com)

1 comment:

  1. Nice! Thanks for explaining the GOROOT environment variable.