title: How to pass variadic parameters from one function to another in Go
body: <p>I'm trying to pass variadic parameters from one function to another in Go. Basically something like this:</p>
  
  <pre><code>func CustomPrint(a ...interface{}) (int, error) {
      // ...
      // Do something else
      // ...
  
      return fmt.Print(a)
  }
  </code></pre>
  
  <p>However when I do this <code>a</code> is printed like a slice, not like a list of arguments. i.e.</p>
  
  <pre><code>fmt.Print("a", "b", "c") // Prints "a b c"
  CustomPrint("a", "b", "c") // Print "[a b c]"
  </code></pre>
  
  <p>Any idea how to implement this?</p>