search

Loading
Showing posts with label gofmt -w. Show all posts
Showing posts with label gofmt -w. Show all posts

Wednesday, June 5, 2013

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.