title: multiple-value in single-value context no return func
body: <p>I have a func in Go that simply writes to a buffer. I have no return type set on the func so I am not sure why I am seeing this error. Here is my code:</p>
  
  <pre><code>func Write(buffer *bytes.Buffer, values ...string) {
    for _, val := range values
      _, err := *buffer.WriteString(val)
      if err != nil {
        // print error
      }
    }
    _, err := *buffer.WriteString(" ")
    if err != nil {
      // print error
    }
  }
  </code></pre>
  
  <p>It complains at both lines where I have buffer.WriteString. This leads me to believe it has something to do with the return types of the WriteString method on the buffer but I am not experienced enough in Go to know for sure.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Edit: Updated code.</p>