Is it possible to initialize slice with specific values?
<p>Is it possible to initialize an slice with all 1's like in python?</p>

<p>PYTHON:</p>

<pre><code>onesArray = np.ones(5)
onesList = [1]*5
</code></pre>

<p>GOLANG</p>

<pre><code>onesSlice := make([]int, 5)
for i:= 0; i &lt; len(onesSlice); i++{
    onesSlice[i] = 1
}
</code></pre>

<p>Is it possible to do better than this?</p>