I want to pass some values to a (3rd party) function with a signature like this:
func Load(files ...string) error {
If I build up a slice of files like this:
var files []string
append(files, "...")
append(files, "...")
How do I pass my files slice to the function Load? This:
Load(files)
Results in this error:
cannot use files (type []string) as type string in argument to Load