title: Do you think you can do reuse of err variables?
body: <p>For example, in such cases the err variable will finish its role soon on the spot, so I do not think it is necessary to define multiple names.</p>
  
  <pre><code>package main
  
  func main() {
      foo, errFoo := foo()
      if errFoo != nil {
          panic(errFoo)
      }
  
      bar, errBar := bar()
      if errBar != nil {
          panic(errFoo)
      }
  }
  </code></pre>
  
  <p>So I change the code as follows.</p>
  
  <pre><code>package main
  
  func main() {
      foo, err := foo()
      if err != nil {
          panic(err)
      }
  
      bar, err := bar()
      if err != nil {
          panic(err)
      }
  }
  </code></pre>
  
  <p>What kind of rules do you guys do?</p>