I'm lazy, want to pass many variables to Printf
function, is it possible?
(The sample code is simplified as 3 parameters, I require more than 10 parameters).
I got the following message:
cannot use v (type []string) as type []interface {} in argument to fmt.Printf
s := []string{"a", "b", "c", "d"} // Result from regexp.FindStringSubmatch()
fmt.Printf("%5s %4s %3s\n", s[1], s[2], s[3])
v := s[1:]
fmt.Printf("%5s %4s %3s\n", v...)