Go waitgroup with goroutines

Previously we talked about how goroutines in Go language works. Today we will focus on providing robustness to our previous talk by using semaphores from sync package. Read More »

Go lang and MVC

Its been long since working with go language, been awesome experience so far. This post is regarding how one can structure go application in MVC structure like Rails. This example would be using Martini and Gorm, for demonstration purpose only. Read More »

Go to Go - Struct and Methods

Go has a speciel type struct to define custome type with named fields. Struct act like collection of attributes/properties similar to classes in OOPS languages out there, but not exactly. Read More »

Go to Go - Packages

Go is modern language, so it has to take care of current software development practices; code reuse or DRY (Don’t Repeat Yourself) being one of them. In go code can be packed into modules and shipped. Lets look into how go uses packages. Read More »

Go to Go - Concurrency Part#2

In last part, we talked about goroutines and channels. As discussed there is much more to channels, liked channel direction, by default a channel is bi-directional, but it can be restricted to sending or receiving. Read More »