title: What is the difference between []string and ...string in golang?
body: <p>In the Go language,</p>
  
  <p><code>[]string</code> is a string array</p>
  
  <p>and we also use <code>...string</code> as a parameter.</p>
  
  <p>What is the difference?</p>
  
  <p>Function definition:</p>
  
  <pre><code>func f(args ...string) {}
  </code></pre>
  
  <p>Can I call this function like below?</p>
  
  <pre><code>args := []string{"a", "b"}
  
  f(args)
  </code></pre>