Saturday, May 21, 2011

Table of Contents

Section 1: Audience, Programming, Go Philosophies, Setup

Installing and configuring Go

Section 2

A step by step approach to Hello World in Go Updated for Go1
Typical early errors while programming Go
Compiling and linking with Makefile Outdated since go command.

Section 3

Memory, variables in memory, and pointers
Control structures - Go if else statement
Control structures - Go for loop, break, continue, range Updated for Go1
Control structures - Go switch case statement
Control structures - Go defer statement
Multiple return values from Go functions Updated for Go1

Section 4 - Objected Oriented Programming in Go? Or lack thereof

Structs in Go - instead of classes in Object Oriented Programming
Anonymous fields in structs - like object composition
Methods on structs
Inheritance and subclassing in Go - or its near likeness
Multiple inheritance in Go
Interfaces in Go
Interfaces in Go - Part 2: Aiding adaptable, evolutionary design
Polymorphism in Go
Summary of object oriented programming goodness in Go, without the pain

Section 5 - Goroutines, channels: parallel programming and communications

Channels in Go
Channels in Go - range and select

Section 6 - Web Programming

Web Programming with Go - first web Hello world Updated for Go1
Go Templates Updated for Go1
Go Templates - Part 2 Updated for Go1
Go Templates - Part 3 - Template Sets Updated for Go1
Using an external api in a Go web program - urlshortener from Google APIs
OAuth2: 3-legged authorization in a Go web application

Section 7 - Google AppEngine for Go

Google AppEngine for Go - Installation and Setup
Analysing a Google AppEnginge for Go program
Using an external api in a Go AppEngine program - urlshortener from Google APIs


Go packages and goinstall - creating and using your own packages in Go
gotest - unit testing and benchmarking Go programs Updated for Go1
Formatting Go code with go fmt Updated for Go1
GoLang talks and tutorials - videos New
My favorite ideas in the Go ecosystem - a usability perspective New


  1. It would be very convenient to go to the next and previous article.

  2. Thank you Миша.
    Since the articles can be read and learnt from in any order, it made more sense to have a table of contents. I hope you will still be able to use it well.

  3. Yes thank you has become much easier))

  4. Very good tutorial, how about continue it explainning some pkg like io, html, ...

  5. thank you LSK. will definitely do - had to take a break to get some other things done.

  6. Great stuff, really shows off the simplicity of the language! Is there a way to directly download these as a big package for offline use?

  7. Great tutorials, softens the cap between java and Go :). Thanks!

  8. Great Articles with great examples. Would love to read some on go reflection.

  9. Thanks Mr. Sathish, your tutorial is very insightful!

  10. Great work, the most lucid tutorials I have come across. Thank you very much.

  11. thanks, it's very nice.

  12. Just wanted to add my thanks for these articles, you've done a great job.

  13. I love these tutorials and I wish there were more. Probably the best resource for learning go I have found on the web.

  14. u r great. thank u.

  15. wow! Great Job :) Thank u man

  16. Hello,
    Do you want me to forward to your .blogspot ?

  17. Great tutorials, thank you!
    Some examples need to be updated for GO v1

  18. Thanks a lot fot these great tutorials.....Pardeep Bajwa

  19. can you add rpc and jsonrpc?

  20. Hi, can you make a direct link to:
    somewhere in menu on the right?

    Cheers, thanks for nice tutorial!

  21. good set of tuts, some code needs to be updated for Go 1

  22. Can you please update template code to Go1 .. thanks

  23. As a total newbie I am afraid I got myself totally lost by attempting to follow the section "Checking we have it setup right". After much suffering I realize that trying to get the command 8g to work misled me now that the go command is available. It would seem essential for you to update this section so that everyone can benefit from the rest of your hard work! Thanks

    1. Sorry about that, have updated that page now to reflect go1.

  24. The best Go tutorial, I found so far. Thank you so much Satish!

  25. Can you add some tutorial on image manipulation,such as image thumbnail (resizing) and stitching two images with some angle, text to image conversion etc. Unfortunately I found there is almost no tutorials in golang talking about these areas. Thanks in advance.

    1. I've not used the image package at all and it might take me a while to write about it - especially since I'm also slightly backed up on some other posts that I want to put up based on what I'm working on right now.

      But maybe you can look at some of the existing image related go projects on github for some guidance before I can get to a proper article:

  26. Hi Sathish,

    I am desperately trying to write a small program for image manipulation, but unable to make any progress. I tried whatever I have learnt so far. I am trying to do something :

    Your help will be highly appreciated, if you can show some light . This look something that may be helpful, but I have no idea how to use it.

  27. I've attempted an answer at the stackoverflow page that you seem to have posted at. Hope that helps somewhat.

    1. I have made changes in grahics-go package to rotate the image and place it a particular x, y axis value. It was hardcoded to place rotated image over the destination image.

      However I am trying to set up the opacity of the source image when I paste it on destination image. I am using DrawMask function. But It seems I have missed something. I have posted the question at as well. Any clue what am I missing?

  28. Thanks Sathish. I will take it forward :)

  29. Thanks! Very helpful tutorial

  30. Hi Sathish,

    Thanks a lot. This is very helpful :)

  31. Sathish -
    I learned more from your GoLang tutorials then several resources on Go and a book on Go combined.

    Thank you for explaining these concepts in such a clear, easy to understand concept. It is too bad others, in particular, book writers cannot explain things in such a way as you do.

    Outstanding job!

  32. This is must have tutorial. I'm reading this after got oficial "A Tour of Go" and write some silly programs and this tutorial helps me get lever higher as here is some features described i didn't see yet.
    Thanks for this tutorial and it's good written so I can understand it :))

  33. Hello! I'm trying to learn go, but all the information I've found so far was kinda confusing, but I found this site and is very useful and all the tutorials are well explained.

    Thanks a lot! :D

  34. sir can you please give a post on use and importance of go language for future

  35. Fantastic! Thank you for your effort!

  36. This comment has been removed by the author.

  37. Good site found fruitful for education.

  38. Great html tutorials tips for programming. It can help better for website developers.Thanks for this useful post.

  39. This is a very great start to Golang. I think you should put all the resources on Github so that other Go programmer can add in or make correction. Btw thanks for the awesome tutorial.

  40. I wish every one a very Happy New Year 2017.

  41. This is my first time go to see at here and i am truly happy to read all at single place.
    BEST SQL&PLSQL Online Training From Hyderabad,India

  42. That is an amazing and superb Blog post, thanks for sharing
    also visit our blog..
    April fool pranks 2017

  43. Thanks I have read your article, it is very interesting and exciting
    download go launcher, go launcher apk, go launcher , go launcher androi,

  44. You need to have time to take care of the active. It in fact was a amusement account it. Look advanced to far added agreeable from you.
    banana kong ,
    banana kong baixar ,
    baixar banana kong ,
    download banana kong ,
    banana kong

  45. Mostly people have all the same things when they are writing academic task or any other writing, especially light music most people like during the writing.
    dream league soccer download , dream league soccer apk , download dream league soccer , dream league soccer

  46. You need to have time to take care of the active. It in fact was a amusement account it. Look advanced to far added agreeable from you.

    entrar hotmail agora , hotmail entrar, entrar hotmail , entrar no hotmail

  47. Mostly people have all the same things when they are writing academic task or any other writing, especially light music most people like during the writing.
    facebook iniciar sesión , facebook, iniciar sesion , iniciar sesion facebook

  48. Mostly people have all the same things when they are writing academic task or any other writing, especially light music most people like during the writing.

    subway surf , baixar subway surf, subway surf download , download subway surf

  49. Very Nice Blog I like the way you explained these things.
    Indias Fastest Local Search Engine
    Indias Leading Local Business Directory

  50. GREEN WOMEN HOSTELGreen Women hostel is one of the leading Ladies hostel in Adyar and we serving an excellent service to Staying people, We create a home atmosphere, it is the best place for Working WomenOur hostel Surrounded around bus depot, hospital, atm, bank, medical Shop & 24 hours Security Facility

  51. A very informative detailed article Happy Baisakhi 2017 greetings and You will also like Vaisakhi best messages Don't miss to see Passover best images for family.

  52. MATLAB Training course satisfied is totally designed with MATLAB Training in Noida Basics during Advanced concept. This program enables students to explore multiple approaches and reach an elucidation with MATLAB faster than with spreadsheet or traditional programming languages.
    call now +91-7503121768

  53. I will always wait for the latest information on this blog . I am very satisfied with the content you create , very powerful and informative . thank you

    wine event singapore
    buy wine online singapore
    wine delivery singapore
    wine gifts singapore

  54. This comment has been removed by the author.

  55. Thanks for Sharing such wonderful information with Us. keep Sharing this cosistently
    You may also like > : Mothers day Images ,
    Happy Mothers day Images 2017 ,
    Mothers day Images 2017

    Thanks for Sharing such wonderful information with Us. keep Sharing this cosistently
    You may also like >: Mothers day Wallpapers ,
    Happy Mothers day 2017 ,
    Happy Mothers day Images

  56. Thank you for taking the time to provide us with your valuable information. We strive to provide our candidates with excellent care and we take your comments to heart.As always, we appreciate your confidence and trust in us
    Matlab Training in chennai

  57. Father's Day is celebrated for a special person of the family - father. All the sun and daughter are express love feeling with their dad and make a day extremely special. If you want to celebrate this Father Day with your father, then you need to some Beautiful Fathers Day Images, Fathers day Wallpapers, and Fathers Day GIF. happy father's day Here we collect best Fathers Day Quotes Images for you. Father's Day is celebrated in all over the world on the different days.

  58. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

  59. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

  60. Thank you for taking the time and sharing this information with us. It was indeed very helpful and insightful while being straight forward and to the point. | |

  61. It is amazing and wonderful to visit your site. Thank you for sharing this information.

  62. Online mba in India
    DEIEDU is the best online Institute in the world with high class course outline and up to date learning materials. DEIEDU is providing the online mba in india, online mba in india, Distance learning mba courses in india, Correspondence mba in India Mba from distance in India, Online Executive Mba in India, distance Mba from India, Online distance mba in India. Distance learning mba degree in India.
    401, fourth floor sg alpha tower
    Vashundhra (up)
    Phone: 9811210788

  63. Valuable information thanks for sharing Oracle DBA Online Training
    use above link for blog commenting

  64. Christmas is an annual festival commemorating the birth of Jesus Christ, observed most commonly on December 25 as a religious and cultural celebration among billions of people around the world. A feast central to the Christian liturgical year, it is preceded by the season of Advent or the Nativity Fast and initiates the season of Christmastide, which historically in the West lasts twelve days and culminates on Twelfth Night in some traditions, Christmastide includes an Octave. Christmas Day is a public holiday in many of the world's nations, is celebrated religiously by a majority of Christians, as well as culturally by many non-Christians, and forms an integral part of the holiday season. In several countries, celebrating Christmas Eve has the main focus rather than Christmas Day.

  65. Christmas is the time when people gift to every one close to them and here are best gifts for men this christmas you can give to them so check them.

    Teens love christmas and one of the major reason is gifts, they love to receive thier favourite items as gitfs every christmas and here are Christmas Gift Ideas for Teens

    Women love to receive gifts and presents from the one they love, so this Christmas what are you planing to gift, if are not having any idea check this Christmas Gift I deas for Women

    Are you thinking of what to give to your boyfriend this christmas then you should see best gifts boys love.

    What do you remember of the last Christmas? you know what most people remember? its memories and moments with loved ones, we say christmas is a season but feelings.

    Have you had this question what do you want for christmas then check this fourm to find answers for your question.

    Selecting gifts for people is a very difficult task we don't know after spending great time and money they may be disapointed so here is a perfect christmas gift guide for you check it.

    Christmas celebrations include a lot gifts, partying, love, and more and here is how hollywod celebraties Christmas celebrations.

    Girlfriends are very typical to handle and they mey some times love things and some times doesn't so here is a list of what your girlfreinds may like this Christmas. check this out.


If you think others also will find these tutorials useful, kindly "+1" it above and mention the link in your own blogs, responses, and entries on the net so that others also may reach here. Thank you.