title: How do I reverse an array in Go?
body: <p><a href="http://play.golang.org/p/W70J4GU7nA">http://play.golang.org/p/W70J4GU7nA</a></p>
  
  <pre><code>  s := []int{5, 2, 6, 3, 1, 4}
    sort.Reverse(sort.IntSlice(s))
    fmt.Println(s)
    // 5, 2, 6, 3, 1, 4
  </code></pre>
  
  <p>It is hard to understand what it means in func Reverse(data Interface) Interface .</p>
  
  <p>How do I reverse an array? I do not need to sort.</p>