Contact: aviboots(AT)netvision.net.il
39,900 questions
51,831 answers
573 users
package main import ( "fmt" "sort" ) func main() { slice := []string{"go", "c", "php", "c++", "python", "java"} fmt.Println(slice) sort.Strings(slice) fmt.Println(slice) } /* run: [go c php c++ python java] [c c++ go java php python] */