Go Data Type Strings Compare
package main/*www. j a va2 s . c om*/ import ( "fmt" "strings" ) func main() { fmt.Println(strings.Compare("India", "Indiana")) fmt.Println(strings.Compare("Indiana", "India")) fmt.Println(strings.Compare("India", "India")) }