Below is a piece of Go code I have question about.
Specifically, what is a
in this function?
func DPrintf(format string, a ...interface{}) (n in
As far as the interface{}
term, it is the empty interface. In other words, the interface implemented by all variables in Go.
This is sort of analogous to java.lang.Object
or System.Object
in C#, but is instead inclusive of every variable type in the language. So it lets you pass in anything to the method.