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