Go Slices String Slice Sorted Check
package main/*from w w w. j a va 2 s. 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++")) }