Lessons Learned: Accepting “any” type of variables in Golang functions

You would like to define a Golang function which accepts different types (or structs) and take different actions depending on your input. This is very similar to the "visitor design pattern"

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