title: Multiple-value in single-value context ERROR
body: <p>I got this error while compiling my GO code:</p>
  
  <pre><code>multiple-value fmt.Println() in single-value context
  </code></pre>
  
  <p>I'm trying to create a function that takes in variable number of ints and prints each variable on a line.</p>
  
  <p>GO:</p>
  
  <pre><code>package main 
  
  import (
      "fmt"
  )
  
  func main() {
      slice := []int{1,3,4,5}
      vf(slice...)
  }
  
  func vf(a ...int) int {
      if len(a)==0 {
          return 0
      }
      var x int
      for _, v := range a {
          x = fmt.Println(v)
      }
      return x
  }
  </code></pre>
  
  <p>Hmm what's wrong?</p>