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"
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"