Strings sorts a slice of strings in increasing order.
package main import ( "fmt" "sort" ) func main() { s := []string{"Go", "Bravo", "Gopher", "Alpha", "Grin", "Delta"} sort.Strings(s) fmt.Println(s) }