func Printf(format string, a ...interface{}) (n int, err error) {
return Fprintf(os.Stdout, format, a...)
}
I don't understand what the meaning of a ...interface{}. I also don't get why the return signature is specifying that it will return an integer and an error but the return is actually a function (Fprintf).
This comes from this tutorial (https://quii.gitbook.io/learn-go-with-tests/go-fundamentals/dependency-injection) and it's not clicking...