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"