title: Multiple variables of different types in one line in Go (without short variable declaration syntax)
body: <p>I was wondering if there's a way with Go to declare and initialise multiple variables of different types in one line without using the short declaration syntax <code>:=</code>.</p>
  
  <p>Declaring for example two variables of the same type is possible:</p>
  
  <pre class="lang-golang prettyprint-override"><code>var a, b string = "hello", "world"
  </code></pre>
  
  <p>Declaring variables of different types with the <code>:=</code> syntax is also possible:</p>
  
  <pre class="lang-golang prettyprint-override"><code>c, d, e := 1, 2, "whatever"
  </code></pre>
  
  <p>This gives me an error instead:</p>
  
  <pre class="lang-golang prettyprint-override"><code>var f int, g string = 1, "test"
  </code></pre>
  
  <p>Of course I'd like to keep the type otherwise I can just use the <code>:=</code> syntax.</p>
  
  <p>Unfortunately I couldn't find any examples so I'm assuming this is just not possible?</p>
  
  <p>If not, anyone knows if there's a plan to introduce such syntax in future releases?</p>