Created
January 15, 2017 07:56
-
-
Save cipepser/432ad7127932ecf06acd2978e0dcc2a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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