Go sort Package StringsAreSorted()
package main// w w w .ja va 2s .co m import ( "fmt" "sort" ) func main() { text := []string{"Java","Python","Javascript","CSS HTML","C++"} fmt.Println(text) if sort.StringsAreSorted(text)==false{ sort.Strings(text) // Sort String Array } fmt.Println(text) fmt.Println(sort.SearchStrings(text,"C++")) }