How to sort integer array in golang using default sort function
<p>A stupid question. I can't sort using default sort function in go</p>

<pre><code>    package main
    import "fmt"
    import "sort"
    func main(){
            var arr [5]int
            fmt.Println("Enter 5 elements")
            for i:=0;i&lt;5;i++{
                    fmt.Scanf("%d",&amp;arr[i])
            }
            sort.Ints(arr)
            fmt.Println(arr)
    }
</code></pre>

<p>When executing the above program, It throws out</p>

<pre><code>cannot use arr (type [5]int) as type []int in argument to sort.Ints
</code></pre>

<p>Need Help.</p>