take an arrary as input in golang : <p>How am I goingt take an array as input in golang ?</p>

<pre><code>func main() {
var inPut []float32
fmt.Printf("Input? ")
fmt.Scanf("%s", &amp;inPut)
fmt.Println(inPut)

for _, value := range inPut {

    fmt.Print(value)
 }
}
</code></pre>

<p>I tried the code above and it doesn't give me the right answer, should I use another type of scanner ? </p>

<p>the input I want to take in is something like  [3.2 -6.77 42 -0.9]</p>
