Skip to content

Instantly share code, notes, and snippets.

@cipepser
Created January 15, 2017 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cipepser/432ad7127932ecf06acd2978e0dcc2a1 to your computer and use it in GitHub Desktop.
Save cipepser/432ad7127932ecf06acd2978e0dcc2a1 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"sort"
)
func main() {
a := []int{2, 3, 1, 2, 5}
sort.Ints(a)
fmt.Println(a) // [1 2 2 3 5]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment