title: Golang: Scope of multi return values from function
body: <p>When a function returns more than one variable in Golang, what's the scope of the variables? In the code attached, I can't figure out the scope of b. </p>
  
  <pre><code>package main
  
  import (
      "fmt"
  )
  
  func addMulti(x, y int) (int, int) {
      return (x + y), (x * y)
  }
  
  func main() {
      //what is the scope of the b variable here?
      a, b := addMulti(1, 2)
  
      fmt.Printf("%d %d\n", a, b)
  
      //what is the scope of the b variable here?
      c, b := addMulti(3, 4)
  
      fmt.Printf("%d %d\n", c, b)
  
  }   
  </code></pre>