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.
https://golang.org/doc/faq

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:\Go\


and/or

C:\>echo %PATH%
<some_path_list>;C:\Go\bin;<some_other_pathes>


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)




2 comments:

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

    ReplyDelete