Multiply 2 or more Arrays in Golang
<p>maybe it's not just a Go-Problem but i have this problem:</p>

<p>I want to multiply two (or more) arrays, so for example:</p>

<pre><code>a := [3]int{2, 3, 5}
b := [2]bool{true, false}
// desired output of "c" =&gt; 
// [[2 true] [2 false] [3 true] [3 false] [5 true] [5 false]]
</code></pre>

<p>I already found this library here: <a href="https://godoc.org/github.com/gonum/matrix/mat64" rel="nofollow">https://godoc.org/github.com/gonum/matrix/mat64</a> but i'm not seeing how to use something else than float64</p>

<p>The fallback-solution would be to use multiple for-range-loops but it'd be amazing if there is a "smoother" way to do this</p>