So, Go-nuts guys came up with Gob (not to be confused with GObjects of GNOME) way to store data. I usually use JSON for marshaling and un-marshaling my content and have my data in JSON format. But Golang is a real pain if you need to work on json data, especially to the people who come from utopia of Python. So I decided to use Go encoded objects instead. The following snippet will encode any type of object.