Can I make the index int64 in golang's for-range iteration?
<p>According to the <a href="https://github.com/golang/go/wiki/Range" rel="nofollow noreferrer">spec</a> the </p>

<pre><code>for idx, val range a_slice 
</code></pre>

<p>statement returns <code>idx</code> as an <code>integer</code>. </p>

<p>Since creating a large size slice is <a href="https://stackoverflow.com/questions/27647737/maximum-length-of-a-slice-in-go">possible</a>, is there a way to chance <code>idx</code> to <code>int64</code>?</p>

<p>Thank you.</p>