Practical embedding in GoLang

Eric Urban has written a phenomenal blog post about embedding in Golang: http://www.hydrogen18.com/blog/golang-embedding.html Embedding in Golang is an important concept to  grasp, especially when coming from an object-oriented paradigm, since as Eric describes, embedding in Golang is superficially similar to OO's inheritance concept. I came across a practical need for doing this when dealing with … Continue reading Practical embedding in GoLang

Advertisements

Nugget Post: Golang : Gobs and exported identifiers

This one had me scratching my head for a while... while messing around with "gobs" - binary representation of data that can be sent over the network between two golang programs - I ran into the problem of "exported fields". I had followed the post on the golang blog regarding gobs, with some modifications. I … Continue reading Nugget Post: Golang : Gobs and exported identifiers