search

Loading
Showing posts with label go programming. Show all posts
Showing posts with label go programming. Show all posts

Thursday, June 6, 2013

How to install go language tools in ubuntu

In the latest version of Ubuntu, the go language tools may be already available in the repos. In that case try,

   sudo apt-get install golang

If it is not working, add go tools PPA and install it.

Wednesday, June 5, 2013

How to run a golang program

Go is a language developed at google. The golang programs are generally having the extension '.go'.

So this is how we run a golang program.

How to format golang code

Golang is a language developed at Google. More information can be found at the wikipedia page.

Go has an easy tool called gofmt  to format the code blocks of go program in easy readable format.

Here is the command to format the golang program using gofmt   and save it to the corresponding file.