Go Slices String Slice Search
package main/*w w w.j a v a 2 s. c o 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++")) }