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"

3 dots in 5 places #golang

A quick addendum to 3 dots in 4 places, which asks: Can you name four places where three dots (...) are used in Go? A quick TL;DR of the above is: Variadic function paramatersThat is, a function that takes a variable number of parameters - e.g. func RandomStrings( arguments ...string) Arguments to variadic functionsThis is similar to … Continue reading 3 dots in 5 places #golang